The 'purpose' of set gamma, is to give people epileptic fits. Or for kool fades.
(Note: I am *AWARE* that wrapvalue() goes from 0 to 359, not 0 to 511...)
`Teh ULTIMATE malfunctioning screen simulation / epilepsy test
make object cube 1,100.0
make object cube 2,100.0
sync on
sync rate 0
hide mouse
color object 1, rgb(255,240,230) : color object 2,0
scale object 2,-105,-105,-105
do
rotate object 1,wrapvalue(object angle x(1)+1.0),wrapvalue(object angle y(1)+1.0),wrapvalue(object angle z(1)+1.0)
rotate object 2,object angle x(1),object angle y(1),object angle z(1)
inc g
set gamma wrapvalue(g),wrapvalue(g-rnd(100)),wrapvalue(g+rnd(110))
sync
loop
[Edit: Interesting... Set Gamma doesn't work in Windowed mode...]