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.

Newcomers DBPro Corner / Color Values????

Author
Message
Sir Ollie
20
Years of Service
User Offline
Joined: 29th Sep 2004
Location:
Posted: 3rd Oct 2004 03:31
theres something weird about the color values.

when i type in

it comes up with a dark blue

when i type

it comes up red

could someone explain plz!

"Use the force you must..."
Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 3rd Oct 2004 04:35
use rgb values

rgb(redvalue,greenvalue,bluevalue)

255 is the max and 0 the minimum

if you do this:
BACKDROP ON
COLOR BACKDROP rgb(255,0,0)

the backdrop will be red.. but when you do this:
BACKDROP ON
COLOR BACKDROP rgb(0,0,255)
it will be blue.. and so:

BACKDROP ON
COLOR BACKDROP rgb(255,255,255)
white ..

hope that helped

Do you need a complete FPS,3rdPS engine ?? Or a collision command libary?? well here it is:
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 3rd Oct 2004 06:10
all that rgb does is calculate the correct value for the color, you can print out the rgb like this

set text font "cooper"
set text size 40
do
red=rnd(255)
blue=rnd(255)
green=rnd(255)
colorvalue=rgb(red,green,blue)
ink rgb(red,blue,green),0
print "with the following red/blue/green values"
print "red :";red
print "blue :";blue
print "green :";green
print "the colour looks like this"
print "and you get the value"
print colorvalue
print "from the rgb function"
print
wait key
cls
loop

hope thats some help.

Mentor.

PC1: P4 3ghz, 1gig mem, 3x160gig hd`s, Radeon 9800pro w cooler (3rd gfx card), 6 way speakers.
PC2: AMD 2ghz, 512mb ram, FX5200 ultra, 16 bit SB.
Mini ATX cases suck.
The Videogameaholic
20
Years of Service
User Offline
Joined: 20th Jul 2004
Location: Blackfield Asylum
Posted: 3rd Oct 2004 15:20
I was playing a video game with my friend and we were painting our mechs and the game used rgb color and he was just dumbfounded. He says, "wtf is this crap?" I replied, "It's red green and blue. You know, like television pixels." He says, "How do you get yellow?" I said, "Red and green is yellow." He says, "I thought red and green is brown." I said, "Says who?" He answers, "Says ROYGBIV!" I laughed and said, "What are you in fourth grade art class? Nobody uses ROYGBIV anymore. This is the new millenium. Get with the times, man!"

RMPVG (Real Men Play Video Games)
Sir Ollie
20
Years of Service
User Offline
Joined: 29th Sep 2004
Location:
Posted: 3rd Oct 2004 17:03
thanx. it works now

"Use the force you must..."
Sir Ollie
20
Years of Service
User Offline
Joined: 29th Sep 2004
Location:
Posted: 3rd Oct 2004 17:31
so is it literally

to get white, because i get a message saying:
"#100007: Variable '255,255,255' name is not valid at line 6"

"Use the force you must..."
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 4th Oct 2004 02:08
Only functions that return a value need brackets.
So it's either

COLOR BACKDROP 255,255,255

or

COLOR BACKDROP RGB(255,255,255)

it's cool to hate
Sir Ollie
20
Years of Service
User Offline
Joined: 29th Sep 2004
Location:
Posted: 4th Oct 2004 02:20
EDITED POST:
drat. i didnt get back in time to edit the post. i now realise that you have to put in


sorry for that

"Use the force you must..."
X_MEN
21
Years of Service
User Offline
Joined: 14th Sep 2003
Location:
Posted: 4th Oct 2004 06:44
try this i did it in about 4ys ago



You can do it if you try
computer
20
Years of Service
User Offline
Joined: 5th Oct 2004
Location:
Posted: 7th Oct 2004 21:17
That's really cool X MEN

bleep bleep

Login to post a reply

Server time is: 2024-11-27 13:05:12
Your offset time is: 2024-11-27 13:05:12