Drawing Functions
This section describes the Lua functions provided by the Draw and Overlay transform engines.
Function | Description |
---|---|
drawEllipse | Draws an ellipse. |
drawGeometricPath | Draws a path (a sequence of connected lines). |
drawLine | Draws a line. |
drawPolygon | Draws a polygon. |
drawRectangle | Draws a rectangle. |
drawText | Draws text. |
fillRectangle | Draws a solid rectangle, obscuring the part of the image underneath the rectangle. |
rgb | Returns a color object that can be passed into other drawing functions. |
rgba | Returns a color object with an associated opacity value, that can be passed into other drawing functions. |