Rectangle2DNode(position, width, height, color, opacity, outline, rotation, scale, layer)
Simple 2D rectangle node
Parameters:
position [value: Vector2, type: Vector2]
width [value: any, type: float]
height [value: any, type: float]
color [value: color, type: Color|int (RGB565)]
opacity [value: 0 ~ 1.0, type: float]
outline [value: True or False, type: bool]
rotation [value: any (radians), type: float]
scale [value: Vector2, type: Vector2]
layer [value: 0 ~ 127, type: int]
Attributes:
add_child(child) [returns: None]
get_child(index) [returns: Node]
get_child_count() [returns: 0 or positive integer]
mark_destroy() [returns: None]
mark_destroy_all() [returns: None]
mark_destroy_children() [returns: None]
remove_child(child) [returns: None]
tick(self, dt) [returns: None]
position [value: Vector2, type: Vector2]
global_position [value: Vector2 (read-only), type: Vector2]
width [value: any, type: float]
height [value: any, type: float]
color [value: color, type: Color|int (RGB565)]
opacity [value: 0 ~ 1.0, type: float]
outline [value: True or False, type: bool]
rotation [value: any (radians), type: float]
scale [value: Vector2, type: Vector2]
layer [value: 0 ~ 127, type: int]
Overrides:
tick(self, dt) [returns: None] [value: function, type: function]
file: src/nodes/2D/rectangle_2d_node.c
landing