openrndr / orx

A growing library of assorted data structures, algorithms and utilities for OPENRNDR
https://openrndr.org
BSD 2-Clause "Simplified" License
120 stars 36 forks source link

[orx-palette/orx-panel] I can select a palette via panel #94

Open ricardomatias opened 4 years ago

ricardomatias commented 4 years ago

Add a gui element which allows selecting a palette from orx-palette

hamoid commented 4 years ago

Maybe the palettes could be rendered as an image, 5 pixels wide (for 5 colors per palette). Then drawn much larger (for easier interaction) and without any interpolation (so it looks pixelated).

Would it make sense to store the palettes as images of 100x5 pixels? Then they could be used even inside a shader. And one could zoom into such image to allow selecting one palette. Just an idea.

ricardomatias commented 4 years ago

I like both ideas, the palette could provide a diplay() method which displays the 5 pixels wide image and a load method for the collection of palettes.