I want to have text over a darken picture without having to edit the picture itself. I feel Matrixcolor will be quicker than editing the image itself if I decide to change the image at a later date.
Is there another way to do this if Matrixcolor can't be used in Composites?
Can I use Matrixcolor in Composites?
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.
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.
Re: Can I use Matrixcolor in Composites?
You can use HueMatrix:
https://www.renpy.org/doc/html/matrixco ... #HueMatrix
https://www.renpy.org/doc/html/matrixco ... #HueMatrix
Code: Select all
image your_image:
"your_image_comp"
matrixcolor HueMatrix(40)
-
- Regular
- Posts: 30
- Joined: Mon Jan 06, 2020 12:30 pm
- Projects: 4Wins
- Deviantart: arlj11
- Github: arlj11
- Contact:
Re: Can I use Matrixcolor in Composites?
That works to tint the image. But now how do I overlay the text. The image doesn't show if I add text to the bottom of the code above and the is at the bottom of the screen.henne wrote: ↑Thu Dec 02, 2021 6:50 am You can use HueMatrix:
https://www.renpy.org/doc/html/matrixco ... #HueMatrixCode: Select all
image your_image: "your_image_comp" matrixcolor HueMatrix(40)
Re: Can I use Matrixcolor in Composites?
Try something like:
Code: Select all
transform darken:
matrixcolor BrightnessMatrix(-0.2)
image eileen composite = Composite(
(300, 600),
(0, 0), At("your_image.jpg", darken),
(0, 0), Text("hello"),
)
colin r
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM
-
- Regular
- Posts: 30
- Joined: Mon Jan 06, 2020 12:30 pm
- Projects: 4Wins
- Deviantart: arlj11
- Github: arlj11
- Contact:
Re: Can I use Matrixcolor in Composites?
That worked. Thank you.
Who is online
Users browsing this forum: Google [Bot], Ocelot, piinkpuddiin