The Daily Click ::. Forums ::. Klik Coding Help ::. RBG coeff problem...
 

Post Reply  Post Oekaki 
 

Posted By Message

W3R3W00F

Drum and Bass Fueled Psycho

Registered
  08/11/2008
Points
  370

VIP MemberCardboard BoxThe Cake is a Lie
26th August, 2010 at 00:53:13 -

Let's say "Event 1" makes "Active 1"'s RGB coefficient 255,255,255, which is normal. "Event 2" is supposed to make "Active 1"'s RGB coefficient 255,0,0. This unfortunately didn't work.

The RGB coefficient seems to only cover the R, and not the G and B. The problem is I'm not sure how to set the RGB properly. I tried seperating the numbers with commas but that didn't work. When I wanted "Active 1" to go back to normal, I typed "255,255,255" but that just made it red. I tried typing just "0", but that made it black.

I'll try to clarify this better if needed. Thanks in advance!

 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
26th August, 2010 at 14:12:52 -

You need to use GetRGB()
(Special -> Colors -> Get RGB Value)

eg.
GetRGB(255, 0, 0)


In case you're interested, what that does is generate a single number out of the three separate component values.
I believe the actual formula looks something like this:

RGBColor = Red + (Green * 256) + (Blue * 65536)

Edited by Sketchy

 
n/a

W3R3W00F

Drum and Bass Fueled Psycho

Registered
  08/11/2008
Points
  370

VIP MemberCardboard BoxThe Cake is a Lie
27th August, 2010 at 04:27:42 -

Great! Thanks a bunch, Sketchy!

 
n/a
   

Post Reply



 



Advertisement

Worth A Click