Is it possible to change the overall hue of a Ren'Py Game?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Kinmoku
Miko-Class Veteran
Posts: 509
Joined: Mon Aug 11, 2014 9:39 am
Completed: One Night Stand
Projects: Love IRL, Memories
Tumblr: gamesbykinmoku
itch: kinmoku
Location: Germany
Contact:

Is it possible to change the overall hue of a Ren'Py Game?

#1 Post by Kinmoku » Fri May 08, 2020 12:07 pm

Hi all. I think this was asked a while ago but I can't find the post now. Is it possible to change the overall hue of a Ren'Py Game? Or brightness/ saturation/ other effects?

I was inspired by World of Horror's color palette and wondered if something similar could be done in Ren'Py i.e. change the overall game's colors, not every individual image? (or maybe a way to process every image and change the GUI styles in one swoop?)
maxresdefault (2).jpg

User avatar
hell_oh_world
Veteran
Posts: 352
Joined: Fri Jul 12, 2019 5:21 am
Projects: The Button Man
Organization: NILA
Location: Philippines
Contact:

Re: Is it possible to change the overall hue of a Ren'Py Game?

#2 Post by hell_oh_world » Fri May 08, 2020 12:53 pm

I don't think this is possible as post-processing filters / functions in renpy can only be applied in a displayable. So i think it's doable as what you think, but only by applying the filter to each displayables.

User avatar
gas
Miko-Class Veteran
Posts: 718
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Is it possible to change the overall hue of a Ren'Py Game?

#3 Post by gas » Fri May 08, 2020 3:22 pm

As long as you work with 2 bits (pure BW) like World of Horrors, you can add a layer with a screen and a Solid tint with alpha < than 1.
You can so manipulate the tint and the alpha to reach for such effects.
I dunno what could happen with a native colored game, probably a mess anyway.
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll be not notified about.

10 ? "RENPY"
20 GOTO 10

RUN

User avatar
Kinmoku
Miko-Class Veteran
Posts: 509
Joined: Mon Aug 11, 2014 9:39 am
Completed: One Night Stand
Projects: Love IRL, Memories
Tumblr: gamesbykinmoku
itch: kinmoku
Location: Germany
Contact:

Re: Is it possible to change the overall hue of a Ren'Py Game?

#4 Post by Kinmoku » Mon May 11, 2020 4:01 am

gas wrote:
Fri May 08, 2020 3:22 pm
As long as you work with 2 bits (pure BW) like World of Horrors, you can add a layer with a screen and a Solid tint with alpha < than 1.
You can so manipulate the tint and the alpha to reach for such effects.
I dunno what could happen with a native colored game, probably a mess anyway.
Yeah, I thought this would be the best way to do it, though it makes everything more red/ green/ whatever, including black. I think if I want to change (for example) black and white to purple and yellow, I'd need to change every individual element of the game. I'm not sure it's worth my time, but your solution is a quick fix for now.

Code: Select all

image red:
    alpha 0.4
    Solid("#ff0000")

screen red:
    zorder 101
    
    add "red"
    
label start:
    show screen red

User avatar
Remix
Eileen-Class Veteran
Posts: 1441
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Is it possible to change the overall hue of a Ren'Py Game?

#5 Post by Remix » Wed May 20, 2020 7:30 am

As gas noted, pretty much any processing (except ATL) feature in Ren'Py only works on physical files, so you'd need to process each file before using it in some form of composite.

There is matrix.colorize which could take a gray-scale (black and white and grays) and make the blacks into purples and whites into yellows.
It rather depends on your base images though.

Personally, if I was looking to do it, I'd be thinking of a displayable prefix and processing in a function... "recolor:images/eileen.png" >>> recolor function >>> read global newblack, newwhite and return colorized version...
Frameworks & Scriptlets:

Post Reply

Who is online

Users browsing this forum: Karrion