PDA

View Full Version : D3DColor_ARGB



Int0xicated
10-10-2008, 12:33 AM
This is SUPER SIMPLE.

Since no one was making any posts in this forum, I though id post a simple tutorial on using ARBG Colors.

A : *****
R : Red
G : Green
B : Blue

d3dcolor_argb( 255 , 0 , 0 , 0 )
This would make a Black Color

d3dcolor_argb( 255, 255, 255, 255 )
This would make a White color.

This is an example on using the function.

You can find a list of RGB Codes, and Hex Digits on This Page. (http://www.farb-tabelle.de/de/farbtabelle.htm)

~Tutorial made by Int0xicated for DXTH4X!
NO LEECHING

ZeaS
10-10-2008, 05:45 AM
you are wrong, your first example would give black color, your secound one is white color, and an example how to use it would be nice for the users

you can declare colors (for menu or something like this=



const D3DCOLOR Red = D3DCOLOR_ARGB(255, 255, 0, 0);

btw be sure you write it in big letters "D3DCOLOR_ARGB"

Gordon
10-10-2008, 06:00 AM
haha owned :popconrzbitch

instead of using the d3d color func - you can use 0xAARRGGBB

example: 0xFFFF0000 => red
0xFF => 255

Vindcare
10-10-2008, 07:05 AM
haha owned :popconrzbitch

instead of using the d3d color func - you can use 0xAARRGGBB

example: 0xFFFF0000 => red
0xFF => 255
Its just in a hex lol :P

Int0xicated
10-10-2008, 01:56 PM
Yeah, i got it mixed up. I was heading to do White n Black, and I had something else on my mind, edited.

LilCrazed
11-13-2008, 10:38 PM
this is a nice tut for beginners