xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
}
function draw()
{
background(0);
stroke(255);
strokeWeight(0.1);
let lineCount = 300;
let step = TWO_PI / lineCount;
let midX = windowWidth / 2.0;
let midY = windowHeight / 2.0;
for (let i = 0; i < lineCount; ++i)
{
line(midX, midY, midX + (cos(i * step) * windowHeight * 0.5), midY + (sin(i * step) * windowHeight * 0.5));
}
}