How to use:
1. Choose the initial and final colours using the colour sliders on the right. Colours can be edited by RGB or by HSL values.
2. Edit the HSL curves in the middle to your liking.
3. Once satisfied with the gradient, click the "Save to Clipboard" button to copy the gradient data to the clipboard.
Gradient data is stored in the clipboard as a Lua table of RGBA tables. The order of colours is from top to bottom in the gradient preview bar.
Code: Select all
{
{28,138,184,255},
{27,150,189,255},
{26,163,195,255},
{26,176,200,255},
{26,190,205,255},
{26,204,209,255},
{26,214,210,255},
{27,218,204,255}
}
Code: Select all
Example:
love ./gradient_editor.love 20
-- This will generate 20 colour values