xxxxxxxxxx
36
let count = 1;
let r, g, b;
function setup() {
createCanvas(600, 500);
}
function draw() {
background(10); // alpha for fade
translate(width/2, height/2);
stroke(0, 255, 255);
strokeWeight(1);
// noStroke();
angleMode(DEGREES);
let radius = 200;
let step = 10;
for(let angle = 0; angle <= 360; angle+=step){
// stroke(0, 255, 255);
let x = radius * cos(angle);
let y = radius * sin(angle);
let x1 = radius * cos(angle + (15 * step));
let y1 = radius * sin(angle + (15 * step));
let x2 = radius * cos(angle + (17 * step));
let y2 = radius * sin(angle + (17 * step));
// line(300 + x, 250 - y, 300 + x1, 250 - y1);
// stroke(255, 255, 0, 100);
// line(300 + x, 250 - y, 300 + x2, 250 - y2);
fill( 0, 255, 255, 20);
triangle(x, y, x1, y1, x2, y2);
}
}