use the slider to adjust the overall contrast of the game.. useful for day fading into night type games or harder levels that get darker.. or rpgs etc etc
note: IT does not work well with some transparency effects, or if your game relies on tricks with r,g,b values, as the contrast function works by adjusting the R,G,B values "all together" which would upset any individual r,g,b values you are using..
although this demo is to only to show the contrast effect...there are also some ideas in here, on how to make slider bars, try sliding the knob, OR clicking anywhere on the bar..
in the near future I will try to make a completely generic slider function().
As it is, this one is close to "generic", and should allow you to put in almost any graphic you want to use as the slider or the slidebar, as it automatically sizes its parameters to the size of the bar.. a smaller or larger bar will still work at the same 0-to-100 percent scale
(also you can move the bar anywhere on the screen before runtime and all components will follow..
but, this one only gives figures of 0->100 percent.. a better version would allow those figures to be modifiable - I may work on that soon if there is a need..?
feral