Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

The 20 Line Challenge / Screen gamma

Author
Message
BaZko
20
Years of Service
User Offline
Joined: 24th Sep 2004
Location:
Posted: 13th Dec 2004 05:58 Edited at: 13th Dec 2004 05:59
Here is a program that changes the screen gamma.(I know its very simple)

Please reply
made in db not pro
BaZko
20
Years of Service
User Offline
Joined: 24th Sep 2004
Location:
Posted: 14th Dec 2004 11:46 Edited at: 14th Dec 2004 11:47
Any comments?
Damokles
21
Years of Service
User Offline
Joined: 28th May 2003
Location: Belgium
Posted: 14th Dec 2004 23:10
Hmm, you got a GOTO command in it. It's really bad you know.

I would do it this way :



Same effect, less lines and the most important : No GOTO used

- Mind the gap -
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 22nd Dec 2004 00:23 Edited at: 22nd Dec 2004 00:23
Um whats the point of this program? Setting the screen gamma is easy.

CURRENT PROJECT: Chaos Hizzle Demo
BaZko
20
Years of Service
User Offline
Joined: 24th Sep 2004
Location:
Posted: 25th Dec 2004 10:39
I made it cause I was bored,so it dosnt really have a point.

Team Dark Knights:
http://www.teamdarkknights.com
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 31st Dec 2004 00:30 Edited at: 31st Dec 2004 00:32
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...]

Login to post a reply

Server time is: 2024-11-24 02:35:16
Your offset time is: 2024-11-24 02:35:16