A collection of manually compiled color palettes, packaged as a Processing library.
Clone this repository into the Processing libraries directory /Processing/libraries/
.
import palettes.*;
Palettes p;
void setup() {
size(1000, 1000);
}
void draw() {
Palettes p = new Palettes(this);
println(p.paletteNames);
p.getPalette("flag");
background(p.background);
fill(p.colors[0]);
stroke(p.stroke);
rect(200, 200, 200, 200);
}
Useful documentation and similar projects for implementing a custom Processing library.