Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Alpha channels

Author
Message
dj BlackDragon
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location: who knows
Posted: 30th Aug 2004 03:07
Do alpha channels, by chance, work in DB and if so what is the hexadecimal for them?
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 30th Aug 2004 19:36
DBC doesn't have alpha channel support, just limited transparency capabilities.

Set Object
Set Sprite
Ghost Object On

Set Object and Set Sprite allows you to make all pure black colors (RGB(0,0,0) or hex 000000) transparent. To make a black color appear, use a color that is near black but isn't pure black (like RGB(16,16,16)). It's limited to black only though, so don't expect varying alpha transparencies.

Ghost Object On is a little different. It enables alpha blending on the object. The darker a color, the more transparent it becomes. However, there is an optional parameter to enable "dark ghosting" which inverts the blending mode.

Try it all and you'll see what I mean.

Login to post a reply

Server time is: 2025-05-24 23:45:00
Your offset time is: 2025-05-24 23:45:00