class
Diorite::TelemetrySeries
- Diorite::TelemetrySeries
- Reference
- Object
Overview
Data buffer for an individual line series within a multi-series TelemetryGraph.
Defined in:
diorite/core/telemetry_graph.crConstructors
-
.new(name : String, color : Godot::Color, capacity : Int32 = 60)
Creates a new series buffer.
Instance Method Summary
-
#add_sample(value : Number, max_samples : Int32) : Void
Appends a new scalar sample to this series, popping the oldest sample if at capacity.
-
#clear : Void
Clears all collected sample history from this series.
-
#color : Godot::Color
Curve line color.
-
#latest_value : Float32
Returns the most recently appended value, or
0.0if empty. -
#name : String
Name or identifier for this series.
-
#samples : Array(Float32)
Array storing current active history samples in chronological order.
Constructor Detail
def self.new(name : String, color : Godot::Color, capacity : Int32 = 60)
#
Creates a new series buffer.
Instance Method Detail
def add_sample(value : Number, max_samples : Int32) : Void
#
Appends a new scalar sample to this series, popping the oldest sample if at capacity.