class
Diorite::Command2D
- Diorite::Command2D
- Reference
- Object
Overview
Internal command payload representing an immediate-mode 2D draw request.
Defined in:
diorite/core/debug_command.crConstructors
-
.new(kind : ShapeKind2D, color : Godot::Color = Godot::Color.new(1.0_f32, 1.0_f32, 1.0_f32, 1.0_f32), duration : Float64 = 0.0)
Creates a new 2D command with default parameters.
Instance Method Summary
-
#b0 : Bool
Boolean parameter 0 (e.g.
-
#b0=(b0 : Bool)
Boolean parameter 0 (e.g.
-
#bar_data : Array(BarData) | Nil
Bar elements for 2D bar chart or histogram.
-
#bar_data=(bar_data : Array(BarData) | Nil)
Bar elements for 2D bar chart or histogram.
-
#channel : String
Filter channel / layer category this command belongs to.
-
#channel=(channel : String)
Filter channel / layer category this command belongs to.
-
#color : Godot::Color
Modulate vertex color for this shape.
-
#color=(color : Godot::Color)
Modulate vertex color for this shape.
-
#duration : Float64
Total lifetime duration in seconds (
0.0for single-frame). -
#duration=(duration : Float64)
Total lifetime duration in seconds (
0.0for single-frame). -
#expired? : Bool
Returns true if the command has exceeded its duration lifetime.
-
#f0 : Float32
Float parameter 0 (radius or arrowhead size).
-
#f0=(f0 : Float32)
Float parameter 0 (radius or arrowhead size).
-
#f1 : Float32
Float parameter 1 (auxiliary float, e.g.
-
#f1=(f1 : Float32)
Float parameter 1 (auxiliary float, e.g.
-
#f2 : Float32
Float parameter 2 (start angle or auxiliary float).
-
#f2=(f2 : Float32)
Float parameter 2 (start angle or auxiliary float).
-
#f3 : Float32
Float parameter 3 (end angle or auxiliary float).
-
#f3=(f3 : Float32)
Float parameter 3 (end angle or auxiliary float).
-
#filled : Bool
Whether the 2D primitive is filled or wireframe.
-
#filled=(filled : Bool)
Whether the 2D primitive is filled or wireframe.
-
#i0 : Int32
Integer parameter 0 (circle segment resolution).
-
#i0=(i0 : Int32)
Integer parameter 0 (circle segment resolution).
-
#kind : ShapeKind2D
The kind of 2D primitive to render.
-
#kind=(kind : ShapeKind2D)
The kind of 2D primitive to render.
-
#p0 : Godot::Vector2
2D point 0 (start point or center coordinate).
-
#p0=(p0 : Godot::Vector2)
2D point 0 (start point or center coordinate).
-
#p1 : Godot::Vector2
2D point 1 (end coordinate).
-
#p1=(p1 : Godot::Vector2)
2D point 1 (end coordinate).
-
#pie_slices : Array(PieSlice) | Nil
Chart slices for 2D pie or donut charts.
-
#pie_slices=(pie_slices : Array(PieSlice) | Nil)
Chart slices for 2D pie or donut charts.
-
#points : Array(Godot::Vector2) | Nil
Polyline vertex array.
-
#points=(points : Array(Godot::Vector2) | Nil)
Polyline vertex array.
-
#rect : Godot::Rect2
Bounding rectangle for 2D box or telemetry graph viewport.
-
#rect=(rect : Godot::Rect2)
Bounding rectangle for 2D box or telemetry graph viewport.
-
#remaining_time : Float64
Remaining lifetime in seconds before this command expires.
-
#remaining_time=(remaining_time : Float64)
Remaining lifetime in seconds before this command expires.
-
#step(delta : Float64) : Void
Advances time by delta seconds, decaying remaining duration.
-
#title : String
Chart title label.
-
#title=(title : String)
Chart title label.
Constructor Detail
Creates a new 2D command with default parameters.
Instance Method Detail
Bar elements for 2D bar chart or histogram.
Chart slices for 2D pie or donut charts.
Remaining lifetime in seconds before this command expires.