ID:135268
Nov 7 2004, 3:51 am
|
|
Is it possible to have a picture in the game and have the background transparent? Or at least one color be a transparent one?
|
Nov 7 2004, 5:04 am
|
|
Yes, do a forum search on transparency in image files. I do believe the color Byond recognizes as transparent is 192,192,192, but I recall someone saying once that is only the case for dmi. I thought I had done it with bitmap files too though, so I don't know. Search it up.
|
In response to Loduwijk
|
|
Don't have time to search it up now, I will in like an hour after I clean my boat. I have tried the 192,192,192 before, because the I looked at the color of the transparent color in byond and it is that. But that didn't work.
|
In response to Cloudiroth
|
|
BMPs are most certainly transparent in colour 192,192,192 when used directly as icons.
DMIs, however, allow colour 192,192,192 to be displayed. PNGs have their own alpha channel ("transparency layer", though BYOND only supports 'transparent-or-not' at this point), so they also do not automatically make colour 192,192,192 transparent. Make sure you're actually using colour 192,192,192, or C0C0C0 in RGB-hexadecimal. Some paint programs will automatically adjust "extreme" saturations/luminosities/etc. of colours and modify the colour as it is put down. Finally, be careful to note that anti-aliasing (adding extra pixels to smooth out a line and camouflage the "jaggy" pixelated look) won't appear very nicely for a BMP image; even 192,193,192 will appear in the game, but 192,192,192 will not; this would give your objects a grey "halo" look. |