Also for a gui library where you might wan’t to draw on a different PGraphics instead of the main one.
add_solver(
$("slider", "thumb"),
(e, r) -> {
g.fill(colors[0]);
g.noStroke();
g.rect(r.x, r.y, r.w, r.h);
}
, DRAW
);
And about the preprocessor.
I would much more prefer that it get’s replaced by a dumber thing.
We would have to get rid of color as a primitive but I can live with that.
How difficult can it be, just explain we have millions of colors, each color has a number…
The when compiling paste a bunch required to make it working on top and at the bottom.
Maybe don’t allow for sketches without any function anymore. It was a nice and clean thing, but in practise hardly used.