getScale(id).settings.horizontal() (since beta 0.3)

Makes the buttons and labels of the scale appear horizontally. This is the default aesthetics of scales.

Note: until version 1.0, you need to call print (again) for the settings to take effect.


[js highlight=”10″ try=”true”]
newScale(“slider”, 100)
newButton(“rotate”, “Horizontal slider”)

Adds a vertical slider to the page and a button which, when clicked, rotates the slider so it appears horizontally.