I'm trying to understand the slider syntax.


If I use the following:

blue: slider 30x259 [
        blue/color: 0.0.255 + (255 - blue/data)
        show blue
]

the /data value ranges from 1 to 255 with an initial value of "none."


If I use the following:

blue: slider 30x259 255 [
        blue/color: 0.0.255 + (255 - blue/data)
        show blue
]

the /data value ranges from 1 to 251 with an initial value of "255."


If I use the following:

blue: slider 30x259 259 [
        blue/color: 0.0.255 + (255 - blue/data)
        show blue
]

the /data value ranges from 1 to 255 with an initial value of "259."


How can I set the initial value of /data without changing the slider's range?

-Ryan

Reply via email to