-
Notifications
You must be signed in to change notification settings - Fork 0
Nodes
This page will describe how the properties and methods of each node work.
Inherits from Node2D
A node that draws simple regular shapes.
It only uses the 'basic' properties, not having the properties listed under 'complex' on other nodes.
It uses the draw_*
methods from CanvasItem
only.
int [default: 1] [range: 1 ≤ x]
The number of vertices in the regular shape. A value of 1
creates a circle, and a value of 2
creates a line.
float [default: 10.0] [range: 0.0 < x]
The distance from each vertex to the center of the shape
float [default: 0.0] [range: -TAU ≤ x ≤ TAU]
The offset rotation applied to the shape, before other transformations, in radians.
float [default: 0.0] [range: -360 ≤ x ≤ 360]
The offset rotation applied to the shape, before other transformations, in degrees.
Color [default: Color.WHITE]
The color of the shape.
Vector2 [default: (0, 0)]
The offset position applied to the shape, before other transformations.
This node defines no instance methods.