fractalkitty looking for math? fractalkitty.com

early works

Perpendicular_Art

#random#animation#accumulates#math#geometry

var  x2 = 200, y2 = 200;
function setup() {
  createCanvas(400, 400);
  background(255);
  frameRate (3);
}

function draw() {
  stroke(random(255), random(255), random(255))
  strokeWeight(random(50));//random line width
  x1 = random(400);//random x1 value
  y1 = random(400);//random y1 value
  x3 = random(400);
  y3 = random(400);
  line1 = line(x1,y1,x2,y2)
  m1 = (y2-y1)/(x2-x1);
  m2 = -1/(m1)
  b2 = y3-x3*m2
  line(x3,m2*x3+b2,x1,m2*(x1)+b2)
}