// 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 |
// |______________________________________________________|