Page 1 of 1

Feature request - Solid colors in Alpha Masks

Posted: Fri Jan 07, 2011 6:01 pm
by kuroi
I'm amazed! I think this is just about the first time I've ever found something that I wanted Renpy to do which it can't. I was trying to make some clouds on top of a sky background and really wanted to use a solid color as the image part with a simple trans map. This seemed like it would be a much more efficient way of creating the clouds rather than using two images.

Code: Select all

im.AlphaMask(Solid(#ffffff), "gamecg/Clouds_Trans.jpg")
I am, however, open to the idea that there is a better way to do this which I haven't considered. Perhaps that's the reason that this feature is not included. So, what does everyone think? Would this be a good idea for it to be able to do or should I be making my clouds a different way?

Re: Feature request - Solid colors in Alpha Masks

Posted: Fri Jan 07, 2011 7:47 pm
by PyTom
This doesn't work because im.AlphaMask requires two images or image manipulators, and Solid isn't an image manipulator. I'd consider just using a png for this.