Functions

Slider(init) Constructor
Slider:draw() Draw the slider
Slider:set_value(v) Set the value of the slider

Functions

Slider(init)

Constructor

Parameters:

init Constructor properties
init.clickset Click-to-set flag (default true)
init.range Starting range (default {0, 1})
init.value Starting value (default 0.5)
Slider:draw()

Draw the slider

Slider:set_value(v)

Set the value of the slider

Parameters:

v The value