xxxxxxxxxx
let deg = 1, sc;
function setup() {
createCanvas(windowWidth, windowHeight);
}
function draw() {
background(255);
translate(width/2, height/2);
deg = PI/2;
fractoul(100, 3);
}
function drawF(len){
// First thig to do
line(-len,0,0,len);
line(len,0,0,len);
translate(0,-len);
}
function fractoul(len, s) {
strokeWeight(s);
drawF(len);
len *= 0.66;
s *= 0.7;
if(len > 2){
// N
push();
rotate(deg);
fractoul(len, s);
pop();
push();
rotate(-deg);
fractoul(len, s);
pop();
}else {
}
}