// T H E
// ____ __ ____
// /\ \ /'_/'\ /\ _ /__ \
// \ \ / /\ \ \ \ ,\ __ //\ \
// \ \ \ \ \ __\ \ /''\ \ / /''\ \ \ \
// \ \ _ \ \ _/\ /\ /\ \ _/\ \L._ _\ \
// \ _\ \ _\ _\ _\ _\ _/._\ /_
// // // //// ////// //
// ______________________________________________________
// | |
// | I N S T R U C T I O N S |
// ||
// | |
// | This OBJKT takes its own description metadata and |
// | executes it as code to render its output |
// ||
// | |
background(backgroundColor);
points = new Array(floor(random(2,50)));
padding = width/50;
for (let i = 0; i < points.length; i++) {
points[i] = {
x:random(padding,width-padding),
y:random(padding,height-padding)
};
}
for (let i = 0; i < points.length; i++) {
for (let j = 0; j < points.length; j++) {
strokeWeight(width/2000);
stroke(lineColor);
line(
points[i].x,points[i].y,
points[j].x,points[j].y
);
}
}
// || // | | // | Clicking anywhere regenerates the art and | // | toggles between black/white mode | // | | // | Made in p5js | // || // | | // | 29 July 2021 @Yazid | // |______________________________________________________|