Difference between revisions of "Talk:love.graphics.rectangle"
(Created page with "It it possible to add the same as love.graphics.draw( drawable, x, y, r, sx, sy, ox, oy, kx, ky ) to love.graphics.rectangle( mode, x, y, width, height, rx, ry, segments )...") |
|||
Line 2: | Line 2: | ||
love.graphics.draw( drawable, x, y, r, sx, sy, ox, oy, kx, ky ) | love.graphics.draw( drawable, x, y, r, sx, sy, ox, oy, kx, ky ) | ||
+ | or | ||
+ | love.graphics.printf( text, x, y, limit, align, r, sx, sy, ox, oy, kx, ky ) | ||
+ | |||
to | to |
Revision as of 19:15, 6 February 2022
It it possible to add the same as
love.graphics.draw( drawable, x, y, r, sx, sy, ox, oy, kx, ky ) or love.graphics.printf( text, x, y, limit, align, r, sx, sy, ox, oy, kx, ky )
to
love.graphics.rectangle( mode, x, y, width, height, rx, ry, segments )
that we get the rotated rectangle: love.graphics.rectangle( mode, x, y, width, height, rx, ry, segments, r, ox, oy )
where:
number r (0) Orientation (radians).
number ox (0) Origin offset (x-axis).
number oy (0) Origin offset (y-axis).