xxxxxxxxxx
// A starting point for getting a framed set of variant sketches.
// How to use:
// 1. Implement your (sub-)sketch draw function in a function which takes a graphics object.
// See tabs example1 and example2
// 2...
// That's it!
function setup() {
createCanvas(800, 800);
noLoop();
}
function draw() {
background(palette.background);
drawFramedGridOfCompositions(drawExampleSketch1);
}
function mousePressed() {
shouldAddRandomRotation = random([true, false]);
redraw();
}