struct

Range(B, E)

Inherits Iterable < Enumerable < Struct < Value < Object

Crystal Standard Library Extension: Type cohesion for Crystal Range <-> Godot

Instance methods

to_godot_bounds

Converts to float tuple for engine interop

Source
to_godot_hint_string(step : Number | Nil = nil) : String

Converts Crystal range to a Godot PROPERTY_HINT_RANGE hint string (e.g. "0,100" or "0,100,0.5")

Source
to_godot_range(step : Number = 1.0) : Godot::Range

Converts Crystal range into a Godot::Range control node

Source