Computer Science Canada

Picture Transparency

Author:  Spence607 [ Wed Jan 14, 2009 4:19 pm ]
Post subject:  Picture Transparency

Now that I know how to display pictures I've decided to redo my whole game with pictures that I've made instead of drawing everything in Turing, which is a huge waste of time. Now.. I noticed that Turing does not support PNG images so I made a GIF image with a transparent background, now instead of showing the background as transparent in Turing it is white. How can I fix this? Please tell it is possible to use an image with transparency present.

Edit: I've figured this out. Now I've made an animated GIF, but it doesn't seem to animate when I display it in Turing, are animated GIFs not supported?

Author:  Tony [ Wed Jan 14, 2009 5:50 pm ]
Post subject:  RE:Picture Transparency

I've seen someone implement an animated .gif in Turing, but I recall it being non-trivial and buggy. Besides, the animation will run at a different clock from your program - that might make things look weird in certain cases.

You could make a picture's background transparent using picMerge option for Pic.Draw. And animations via looping over an array of frames.

Author:  Spence607 [ Wed Jan 14, 2009 6:18 pm ]
Post subject:  Re: RE:Picture Transparency

Tony @ Wed Jan 14, 2009 5:50 pm wrote:
I've seen someone implement an animated .gif in Turing, but I recall it being non-trivial and buggy. Besides, the animation will run at a different clock from your program - that might make things look weird in certain cases.

You could make a picture's background transparent using picMerge option for Pic.Draw. And animations via looping over an array of frames.


I see, alright will do.

Edit: Can't figure it out, so what do I need to do exactly?

Author:  Parker [ Thu Jan 15, 2009 8:31 am ]
Post subject:  RE:Picture Transparency

If someone gives you a command to try, the best thing to do if your unfamiliar with it use use the Turing reference (F9). picMerge is used in place of picCopy or picXor. If you tried what I said already, sorry.

Author:  Spence607 [ Thu Jan 15, 2009 10:52 pm ]
Post subject:  Re: RE:Picture Transparency

Parker @ Thu Jan 15, 2009 8:31 am wrote:
If someone gives you a command to try, the best thing to do if your unfamiliar with it use use the Turing reference (F9). picMerge is used in place of picCopy or picXor. If you tried what I said already, sorry.


Yeah I have, and I figured it out. I'm talking about something else.. for animated GIFs I need to use Pic.FileNewFrames and arrays to display it. Which is what I need help with, I can't figure it out.


: