Log In  

Cart #gradienteditor-1 | 2019-12-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
6

Inspired by Palette-Maker. This is a tool to create dithered 32-colour gradients. Mainly for my own use with my 3D lighting system, but I figured maybe someone else will find this useful.

The interface currently technically allows you to use more than 16 different colors, but of course, PICO-8 can't actually render that. I could fix that, but the simplest fix is that you just don't do that :)

Exports the gradient steps (on a scale of 0-127) and colors into the clipboard as Lua tables, without braces, like this:

gradsteps=0,32,64,96
gradpal=0,5,6,7

Of course, this doesn't work on the browser, so run locally. You can use my code to render the gradient, or write your own. dw817 has written an excellent tutorial on how to implement dithering.

How to use:

up and down: select gradient step
left and right: select color for current gradient step
x: copy gradient steps and colors to clipboard (does not work in browser version)
z: lock gradient step for further functions

when locked:
up and down: move gradient step
z: unlock gradient step
x: go into add/delete mode

when in add/delete mode:
z: add step after current step
x: delete current step

P#70762 2019-12-09 12:01 ( Edited 2019-12-09 12:31)


[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2020-02-25 00:34 | 0.018s | 2097k | Q:33