Archived

This topic is now archived and is closed to further replies.

DirectDraw Help

This topic is 6361 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

when i do : ddbltfx.dwFillColor how do i set what the colour is? i can only seem to get it to use colour codes, which i dont want to do. is there any way that i can use RGB values? i have been told not to use the RGB macro.

Share this post


Link to post
Share on other sites
Yeah...

the format of ddbltfx.FillColor is
0xAARRGGBB

where A = Alpha, R = Red, G = Green, B = Blue

so you could do it manually (if you often draw you know the colors by heart) or you use a MACRO (THAT IS FINE!! Thurst me)

so bright colors are
0x00ffffff white
0x00ff0000 red
0x0000ff00 green
0x000000ff blue
0x00ffff00 yellow
0x0000ffff cyan blue
0x00ff00ff magenta purple

greetings Dark


Share this post


Link to post
Share on other sites
Yeah...

the format of ddbltfx.dwFillColor is
0xAARRGGBB

where A = Alpha, R = Red, G = Green, B = Blue

so you could do it manually (if you often draw you know the colors by heart) or you use a MACRO (THAT IS FINE!! Thurst me)

so bright colors are
0x00ffffff white
0x00ff0000 red
0x0000ff00 green
0x000000ff blue
0x00ffff00 yellow
0x0000ffff cyan blue
0x00ff00ff magenta purple

greetings Dark


Share this post


Link to post
Share on other sites