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 )...")
 
 
(One intermediate revision by the same user not shown)
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
Line 7: 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).


--Darkfrei (talk) 19:12, 6 February 2022 (UTC)