RenderingContext:draw_geometry()
RenderingContext:draw_geometry(param_table)
RenderingContext:draw_geometry(geometry, x, y[, angle[, scale]])
This function draws the outline of the specified geometry using following properties of the rendering context.
Parameters
| Parameter | Type | Description | 
|---|---|---|
param_table | table | This parameter is in associative array table format, meaning it's specified by keys rather than parameter positions. See the Parameters Table section. | 
geometry | Geometry | The geometry object for drawing. It specifies SimpleGeometry or Path. | 
x | number | Draw the gemometry's origin to coincide with this parameter's position in the target space. The default is 0. | 
y | number | Draw the geometry's origin to coincide with this parameter's position in the target space. The default is 0. | 
angle | number | Rotate counterclockwise by the specified angle in degrees around the geometry's origin.The default is 0. | 
scale | number | The scaling factor. The default is 1. | 
Parameters Table
| Key | Type | Description | 
|---|---|---|
geometry | Geometry | The geometry object for drawing. It specifies SimpleGeometry or Path. | 
x | number | Draw the gemometry's origin to coincide with this parameter's position in the target space. The default is 0. | 
y | number | Draw the geometry's origin to coincide with this parameter's position in the target space. The default is 0. | 
angle | number | Rotate counterclockwise by the specified angle in degrees around the geometry's origin.The default is 0. | 
scale | number | The scaling factor. The default is 1. | 
Return Values
This method doesn't return any value.