Feature request - Solid colors in Alpha Masks

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
kuroi
Regular
Posts: 129
Joined: Fri Jun 29, 2007 10:50 am
Location: Albuquerque, New Mexico, USA
Contact:

Feature request - Solid colors in Alpha Masks

#1 Post 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?
President, Planner, and Programmer for Kuroi Games!

User avatar
PyTom
Ren'Py Creator
Posts: 16088
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Feature request - Solid colors in Alpha Masks

#2 Post 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.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: No registered users