-
Notifications
You must be signed in to change notification settings - Fork 0
Slider class
Pegacraffft edited this page Jan 14, 2021
·
2 revisions
This object can be used to create a slider in a scene. It can be used for a volume slider, or similar things.
The constructor takes an x , and y position, as well as the scene it is created in.
//Initialisation of the slider object
Slider slider = new Slider(100, 100, scene); //x: 100, y: 100, scene: the scene (if you initialize it in a scene class, use "this")
//add the slider to the scene
addObject(slider);returns the current slider position as a double.
sets the opacity of the bar.
sets the color of the slider.
sets the length of the bar in pixels.
sets the color of the bar.
sets the thickness of the bar.
sets the height of the slider.
sets the width of the slider.
sets the slider position.