graphics.drawRectangle: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 20: Line 20:
|returnFail1 = void
|returnFail1 = void
|notes = The sourcePos, sourceSize, and scale args can be used to set which part of an image is shown in the rectangle. Useful if you have a large image of sprites (sprite-sheet) or just want to render a certain part of an image instead of the entire thing.<br>
|notes = The sourcePos, sourceSize, and scale args can be used to set which part of an image is shown in the rectangle. Useful if you have a large image of sprites (sprite-sheet) or just want to render a certain part of an image instead of the entire thing.<br>
Using multiple different colours in the colour 1-4 args will draw the rectangle with a gradient. Using only 1 colour arg, or making all the same colour will draw a solid colour.
Using multiple different colours in the colour 1-4 args will draw the rectangle with a gradient. Using all colours with the same colour will draw a solid colour.
Rectangles can be drawn with transparency via the 4th arg (alpha) in [[toColour|toColour]]
Rectangles can be drawn with transparency via the 4th arg (alpha) in [[toColour|toColour]]


}}
}}
emailconfirmed
100

edits