DirectDraw Help

Started by
2 comments, last by Darkeye 23 years, 9 months ago
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.
Advertisement
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


ICQ: 130925152Email: e.j.folkertsma@student.utwente.nl
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


ICQ: 130925152Email: e.j.folkertsma@student.utwente.nl
Sorry

ICQ: 130925152Email: e.j.folkertsma@student.utwente.nl

This topic is closed to new replies.

Advertisement