Skip to content
9thAzure edited this page Feb 14, 2024 · 1 revision

This page will describe how the properties and methods of each node work.

SimplePolygon2D

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.

Properties

Vertices Count

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.

Size

float [default: 10.0] [range: 0.0 < x]

The distance from each vertex to the center of the shape

Offset Rotation

float [default: 0.0] [range: -TAU ≤ x ≤ TAU]

The offset rotation applied to the shape, before other transformations, in radians.

Offset Rotation Degrees

float [default: 0.0] [range: -360 ≤ x ≤ 360]

The offset rotation applied to the shape, before other transformations, in degrees.

Color

Color [default: Color.WHITE]

The color of the shape.

Offset Position

Vector2 [default: (0, 0)]

The offset position applied to the shape, before other transformations.

Methods

This node defines no instance methods.

Clone this wiki locally