![]() |
Lysa.ui
0.0
Lysa 3D Engine
|
A Slider whose track is drawn with a gradient of colors.
Inherits from: Slider
Lua full name: lysa.ui.ColorSlider
Public Member Functions | |
| lysa.float4 | color_at (ratio: number) |
| Returns the interpolated gradient color at a ratio in [0.0, 1.0]. More... | |
| nil | set_resources (res_arrow: string) |
| Reloads the visual style of the value arrow. More... | |
Properties | |
| lysa.float4[] | colors |
| The color stops of the gradient drawn in the track, in order. | |
| lysa.Rect | track_rect |
| The rectangle the gradient is drawn into. (read-only) | |
| integer | steps |
| Number of quads used to draw the gradient; higher is smoother. | |
| Arrow | arrow |
| The arrow marking the current value. (read-only) | |
|
Returns the interpolated gradient color at a ratio in [0.0, 1.0].
| ratio | number |
|
Reloads the visual style of the value arrow.
| res_arrow | string |
| lysa.float4[] colors |
The color stops of the gradient drawn in the track, in order.
| lysa.Rect track_rect |
The rectangle the gradient is drawn into. (read-only)
| integer steps |
Number of quads used to draw the gradient; higher is smoother.
| Arrow arrow |
The arrow marking the current value. (read-only)