A downloadable screen

Download NowName your own price

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

  1. Download the latest release cs-slim zip.
  2. Unpack it into your project directory (the one above game).
  3. 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}"
        
  4. 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.

Download

Download NowName your own price

Click download now to get access to the following files:

Source Release
External

Leave a comment

Log in with itch.io to leave a comment.