Ren'Py Color Sliders
A downloadable screen
Allow players to choose colors via RGB/HSL color sliders!
Includes a new screen called color_picker
which when closed,
returns the user's selected color value as a hex string.
Usage
- Download the latest release
cs-slim
zip. - Unpack it into your project directory (the one above
game
). -
Call the color picker screen.
label start: e "Pick a color." window hide $ bg_color = renpy.call_screen("color_picker") window show e "You selected the color {color=[bg_color]}[bg_color]{/color}"
- Use the returned hex code string for whatever you like, for example, changing the colors of the background, dialogue, or character names.
Customization
You may be looking at this thing and thinking "wow, that's kinda ugly," which is probably true. I don't have an eye for design, and I don't pretend to, but luckily the color picker screen and its styles are pretty simple and easily hackable.
License
This source code and project are released under the MIT license, which to paraphrase in a way that is not legally binding:
- You can use it for free things
- You can use it for paid things
- You can modify it however you see fit
- You can redistribute it as you see fit
- Go nuts!
For a better breakdown of what the license actually means, see: choosealicense.com
I do ask that you credit me in some way, but if you don't I'm not gonna call the open-source police on you. If you do choose to credit me you can do so by providing a link to my GitHub, my Itch.io, or just call me Foxcapades.
Status | Released |
Category | Other |
Author | Foxcapades |
Made with | Ren'Py |
Tags | Colorful, color-picker, Open Source, Ren'Py, sourcecode |
Code license | MIT License |
Links | Source code |
Download
Click download now to get access to the following files:
Leave a comment
Log in with itch.io to leave a comment.