Funzione
Moderato
Canvas:DrawPolygon
Draws a N-Polygon on the Canvas<br/></br>This method can only be called from inside <code>Update</code> event
Non ancora tradotto
Sintassi
my_canvas:DrawPolygon(texture_path, screen_position, radius = Vector2D(1, 1), number_of_sides = 3, render_color = Color.WHITE, blend_mode = BlendMode.Opaque)
Parametri
| Nome | Tipo | Predefinito | Descrizione |
|---|---|---|---|
texture_path
|
ImagePath | — | Pass empty to use default white Texture |
screen_position
|
Vector2D | — | — |
radius
facoltativo
|
Vector2D | Vector2D(1, 1) |
— |
number_of_sides
facoltativo
|
integer | 3 |
— |
render_color
facoltativo
|
Color | Color.WHITE |
— |
blend_mode
facoltativo
|
BlendMode | BlendMode.Opaque |
— |