Forgive me guys but I'm stump on this. How do I find the numbers in asm for making different colors. Searching the
forums I only found a reference about Color picker.

like eax, 0ff8080h
edx, 0800000h
ebx, 0ff8000h --- gives the color blue but

How do I find the numbers for making my own colors.
Posted on 2003-07-25 23:14:00 by Tweak
00BBGGRR

BB = hex value from 00-FF for blue
GG = hex value from 00-FF for green
RR = hex value from 00-FF for red

You can check the COLORREF entry at msdn for a more detailed explanation.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/colors_9xiq.asp
Posted on 2003-07-25 23:19:25 by donkey
You are talking abt rgb or hsl?

Have a look at this
http://www.asmcommunity.net/board/index.php?topic=7425&

for rbg,
it is stored as 00bbggrr (with the letters as hex).
Posted on 2003-07-25 23:20:27 by roticv
Wow!! quick response

once again the community to the rescue thanks!! :alright:
Posted on 2003-07-25 23:29:29 by Tweak
Tweak any graphics editor (including MS PAINT) has a color dialog that will show you a dither chart of colors and when you select one it will display the red green and blue values, you have only to do the conversion. Generally I use the RadASM color reference by minor28 to insert the number directly into my code. PS this dialog is available to your apps as the choosecolor dialog.
Posted on 2003-07-25 23:30:06 by donkey
so tell me if I missed something.

R-142 = 008e0000h
G-95 = 00005f00h
B-160 = 000000a0h
which should give purple is this the correct way to covert these values.
Posted on 2003-07-25 23:46:57 by Tweak
BBGGRR

Blue comes first...
Posted on 2003-07-25 23:49:03 by donkey