architectingWebs
let r=150,a=3,b=2,c=4
function setup() {
cnv = createCanvas(windowWidth, windowHeight);
noFill()
angleMode(DEGREES)
strokeWeight(0.05)
}
function draw() {
translate(width/2,height/2)
p=random(0,360)
triangle(r*sin(p*a),r*sin(p*c)*tan(p*b),r*2*tan(p/a),r*tan(p*b)*sin(p/c),r*tan(p*c),-r*cos(p*a))
print(frameCount)
}
function mousePressed(){
str = "a"+a+"_b"+b+"_c"+c+".jpg"
print(str)
background(255)
a=round(random(-3,3),2)
b = round(random(-4,4),2)
c= round(random(-5,5),2)
frameCount=0;
}