SRL Archive - Discussions and Debates

Simba / SCAR Colors - What type of colors?


Camaro'

2010-11-23 19:06:26

Title sounds confusing, oh well.

Lets say you pick a color, and the color is like 576445;

That color isn't hex, RGB, etc, what type of color is it? Hard to explain :(. I hope someone understands.

anonymity

2010-11-23 19:15:52

I am pretty sure it is the color hex.

E: aww.. I was wrong..

Narcle

2010-11-23 19:34:21

It is RGB, I forgot how the formula works… but here:
ColorToRGB(color, R, G, B);

You can also go RGB to color. Someone will probably post the formula.

e: You can use Hex too, $FF (i think its $ in simba/scar)

Cazax

2010-11-23 19:43:33

http://villavu.com/forum/showthread.php?t=18514 The formula can be found at the end.

Camaro'

2010-11-23 19:48:02

Thanks guys for your help!

(Cazax got what I was looking for:p)

Wanted

2010-11-24 02:13:03

It's referred to as decimal.

Wizzup?

2010-11-24 09:25:26

I think Kaitnieks called it "win32 colour", but it is really just RGB in decimal value.

noidea

2010-11-24 11:29:51

http://villavu.com/forum/showthread.php?t=52716

Markus

2010-11-24 12:44:10

Entire thread: s/RGB/BGR/
And it are Windows colours indeed. Java/X use RGB iirc, but windows uses BGR (least signifcant byte is R, most significant B).

Wizzup?

2010-11-24 12:54:45

From: Markus
Entire thread: s/RGB/BGR/
And it are Windows colours indeed. Java/X use RGB iirc, but windows uses BGR (least signifcant byte is R, most significant B).


And Simba uses RGB, not BGR. Though it seems our definitions of least significant byte differ. ;) The placement anyway.

Markus

2010-11-24 14:04:59

I'm little endian.