The Dink Network

white is transparent?

March 16th 2011, 04:07 PM
peasantmg.gif
raven
Peasant He/Him Sweden
 
Anyone know how to get the color white not be transparent in graphics?
March 16th 2011, 04:11 PM
burntree.gif
Fireball5
Peasant He/Him Australia
Let me heat that up for you... 
In the dink.ini, where you add the lines for your graphics, I think you put "BLACK" after it to make black thee transparent colour. Other than that, there isn't much you can do. You kind of have to choose between white or black.
March 16th 2011, 05:16 PM
peasantmg.gif
raven
Peasant He/Him Sweden
 
Ok, it works now, thanks!
March 16th 2011, 07:04 PM
custom_msdink.png
MsDink
Peasant She/Her New Zealand
Tag - Umm.. tag, you're it? 
...Or make them off white slightly, think 255 is the number of "white" that is transparent
March 17th 2011, 01:57 AM
burntree.gif
Fireball5
Peasant He/Him Australia
Let me heat that up for you... 
Yes, if all colours are 255 then it will display as white. The thing is, Dink uses a limited palatte, (don't quote my spelling) so just changing the values to 254 (slightly off-white) won't work. If you wanted an off-white colour you would have to find the closest white-ish colour in the palatte. But this is only a problem if you need both black and white.
March 17th 2011, 02:08 AM
custom_msdink.png
MsDink
Peasant She/Her New Zealand
Tag - Umm.. tag, you're it? 
indeed, all chanels (RGB)set to 222 is a cold white/grey and red 255 green 255 blue 202 is a warm off white (all those numbers are using the dink palette)

Reason I mentioned it was I am wondering if he uses black and sets that to transparent, the shadows (Dinks - sprites etc) may not show up...
March 17th 2011, 05:28 AM
dinkdead.gif
It's possible if the D-Mod's played using true-colour, then a slightly off-white will show. You just need to make sure everyone plays it in true-colour otherwise they have half your graphics showing up transparent

It's often useful when you have black and white in the same sprite, or an animated sprite with white in it (you can't animate if you use BLACK in the .ini I think).
March 17th 2011, 05:53 AM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
You can in fact check whether the player has truecolor enabled before starting a new game. I do it in 404 to make sure people have truecolor checked.
The function is: get_truecolor(). I see no reason for people not to have it checked this day and age anyway. Unless you're playing one of the rare d-mods that make use of palette swaps.

And I hate the fact that slight variations of white mess up my transparency Anything with a little anti aliasing applied to it will show dirty edges.