The first thing that I'd like to know is how to call up one image manipulator within another image manipulator.
For example, if I wanted to to vertically flip an image and then also horizontally flip it, how would I write that out?
Currently I only know how to do this directly to the image itself like in the following examples:
Code: Select all
image whateverfliph = im.Flip("whatever.png", horizontal=True)
image whateverflipv = im.Flip("whatever.png", vertical=True)
Code: Select all
image whateverfliphv = im.Flip("whatever.png", horizontal=True, vertical=True)
Even if the above DOES work, I still don't know how I can refer to an entirely separate type of image manipulator, such as if I was flipping a scaled image, for example.
I don't have any idea as to what the proper syntax for something like that is, which should go a long way towards exposing my ignorance.
Secondly; I came up with what is probably the most rudimentary way of going about this, but I need to find an efficient way of increasing and decreasing individual character brightness with some form of dynamic control (even better if it allows me to tweak the RGB values as well to tint the image).
My current solution to this is:
Code: Select all
image characterdark = im.MatrixColor(
"generic_folder/character.png",
im.matrix.tint(0.6, 0.6, 0.7))
This works fine for single image poses, but
1. I don't know how to make a single command affect multiple images, meaning that this is the least efficient command in the universe for Ren'py basically
2. There's probably significantly more efficient ways of doing this where I don't need to designate each individual pose with a proper lighting code, basically just an on/off switch that designates whether all characters or individual characters are affected and to what extent
Having to encode each pose being darkened individually would be an extreme hassle, not even going into how absurd it could get if I tried to use my current solution for coloring every individual character image separately.
TLDR Summary Σ(‘◉⌓◉’)
-I need to know how to reference one (or more) image manipulators within another image manipulator's syntax
-I need to know how to include multiple images within a single user-defined command when it comes to altering their colors (although this will obviously work with other stuff too)
-I would like a more efficient way to set brightness/tint/contrast for characters within a scene rather than on a pose-by-pose basis
Hopefully I was concise with my language and I get the point across.
Please and thank you, kind minds of the internet, for I am at your mercy. _/\○_