https://github.com/foxcapades/renpy-color-sliders
https://github.com/foxcapades/renpy-color-sliders
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/foxcapades/renpy-color-sliders
- Owner: Foxcapades
- License: mit
- Created: 2023-07-30T21:23:31.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-06T19:38:49.000Z (almost 3 years ago)
- Last Synced: 2025-10-09T18:40:04.548Z (10 months ago)
- Language: Ren'Py
- Homepage:
- Size: 77.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.adoc
- License: license
Awesome Lists containing this project
README
= Ren'Py Color Sliders
link:https://foxcapades.itch.io/renpy-color-sliders[On Itch.IO]
Allow players to choose colors via RGB/HSL color sliders!
image::.assets/preview.gif[]
Includes a screen named `"color_picker"` which when closed, returns the users
selected color as a hex string.
== Usage
. Download the latest release `cs-slim` zip.
. Unpack it in your project directory (the one right above `game`).
. Call the color picker screen.
+
[source, python]
----
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 text, or character names.
+
image::.assets/example.gif[]
== 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 link:game/lib/fxcpds/color_picker/screens/screen_color_picker.rpy[color picker screen]
and link:game/lib/fxcpds/color_picker/screens/styles.rpy[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:
https://choosealicense.com/licenses/mit/
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 link:https://github.com/Foxcapades[GitHub], my
link:https://foxcapades.itch.io/[Itch.io], or just call me Foxcapades.