xxxxxxxxxx
/*
Alien observation #WCCChallenge Petri dish 250409
https://openprocessing.org/sketch/2608509
#generativeart #creativecoding #p5js
Dear Raph and creative coding community,
for a while I wanted to explore https://c2js.org/ a bit and
took this challenge as an opportunity to start.
The delaunay triangles shall represent alien life.
Overlay 3 alines with some transparency.
Join the Birb's Nest Discord for friendly creative coding community
and future challenges and contributions: https://discord.gg/S8c7qcjw2b
WCCC-Contributions: https://openprocessing.org/curation/78544
*/
let S, D, aliens = new Array(3);
function setup() {
createCanvas(S = min(windowWidth, windowHeight), S);
describe("moving organism of 3-layered soft-saturated colored triangle cells in a hull.");
frameRate(15);
background('#fff');
colorMode(HSL, 100);
D = S * 0.95;
for (let i = 0; i < aliens.length; i++) {
aliens[i] = new Alien();
}
}
function draw() {
background('#fff');
translate(S / 2, S / 2);
fill('#ddd');
stroke('#999');
strokeWeight(3);
circle(0, 0, D);
strokeWeight(1);
for (let i = 0; i < aliens.length; i++) {
aliens[i].display();
aliens[i].update();
}
}
function mousePressed() {
if (mouseButton != RIGHT * mouseX > width * 0.1 && mouseX < width * 0.9) setup();
}