RGB Transparentcy? Or lack there of.
Author |
Message |
Gooie
|
Posted: Mon Jan 14, 2008 8:57 pm Post subject: RGB Transparentcy? Or lack there of. |
|
|
Sorry for all the help topics, but I ran in to a problem today, while working with GIFs and RGB.SetColour.
All I did, was draw a GIF image with transparency and it worked fine. But once I added RGB.SetColour the transparent parts were white. I didn't even draw anything with that color yet. I asked my teacher about it and she said she was stumped. So, is this a problem with Turing or me being an idiot? |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Tony

|
Posted: Mon Jan 14, 2008 9:29 pm Post subject: RE:RGB Transparentcy? Or lack there of. |
|
|
In such a case, it helps to set up little test-case experiments -- try to reproduce the effect with the least code possible. Take out everything but the essentials, and run it in a new file. This is the base case that we will study.
Ideally you will have a tiny program that draws an image as expected. Then when you add a single line of code (RGB.SetColour), the transparency breaks -- then you will know this is the case.
If so, I suspect that that RGB.Set might be messing with Turing's default pallet of colours, but it's just a guess.
Feel free to publish such case studies in the Tutorials -- it's a good learning experience to figure such things out. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
 |
|
|