graphics.drawRectangle: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 6: Line 6:
|parameters = Surface surface, Vec2 position, Vec2 size, [ int colour1 = COLOUR_WHITE ], [ int colour2 = COLOUR_WHITE ], [ int colour3 = COLOUR_WHITE ], [ int colour4 = COLOUR_WHITE ], [ float rotation = 0.0 ], [ Vec2 center = Vec2(0.0,0.0) ], [ Vec2 sourcePos = Vec2(0.0,0.0) ], [ Vec2 sourceSize = Vec2(1.0,1.0) ], [ Vec2 scale = Vec2(1.0,1.0) ]
|parameters = Surface surface, Vec2 position, Vec2 size, [ int colour1 = COLOUR_WHITE ], [ int colour2 = COLOUR_WHITE ], [ int colour3 = COLOUR_WHITE ], [ int colour4 = COLOUR_WHITE ], [ float rotation = 0.0 ], [ Vec2 center = Vec2(0.0,0.0) ], [ Vec2 sourcePos = Vec2(0.0,0.0) ], [ Vec2 sourceSize = Vec2(1.0,1.0) ], [ Vec2 scale = Vec2(1.0,1.0) ]
|parameter1 = Surface surface The surface object, which can be null.
|parameter1 = Surface surface The surface object, which can be null.
|parameter2 = Vec3 position The 2D position for the rectangle., in pixels.
|parameter2 = Vec3 position The 2D position for the rectangle, in pixels.
|parameter3 = Vec3 size The 2D size for the rectangle, in pixels.
|parameter3 = Vec3 size The 2D size for the rectangle, in pixels.
|parameter4 = int colour1 optional COLOUR_WHITE The 1st colour for the rectangle.
|parameter4 = int colour1 optional COLOUR_WHITE The 1st colour for the rectangle, created by [[toColour|toColour]].
|parameter5 = int colour2 optional COLOUR_WHITE The 2nd colour for the rectangle.
|parameter5 = int colour2 optional COLOUR_WHITE The 2nd colour for the rectangle, created by [[toColour|toColour]].
|parameter6 = int colour3 optional COLOUR_WHITE The 3rd colour for the rectangle.
|parameter6 = int colour3 optional COLOUR_WHITE The 3rd colour for the rectangle, created by [[toColour|toColour]].
|parameter7 = int colour4 optional COLOUR_WHITE The 4th colour for the rectangle.
|parameter7 = int colour4 optional COLOUR_WHITE The 4th colour for the rectangle, created by [[toColour|toColour]].
|parameter8 = float rotation optional 0.0 The rotation of the rectangle.
|parameter8 = float rotation optional 0.0 The rotation of the rectangle.
|parameter9 = Vec2 center optional Vec2(0.0,0.0) The center of the rectangle.
|parameter9 = Vec2 center optional Vec2(0.0,0.0) The center of the rectangle.
2,591

edits