Difference between revisions of "Talk:love.graphics.rectangle"
Line 10: | Line 10: | ||
that we get the rotated rectangle: | that we get the rotated rectangle: | ||
+ | |||
love.graphics.rectangle( mode, x, y, width, height, rx, ry, segments, r, ox, oy ) | love.graphics.rectangle( mode, x, y, width, height, rx, ry, segments, r, ox, oy ) | ||
Latest revision as of 19:16, 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).