xxxxxxxxxx
var innerSize = 100;
function setup() {
createCanvas(windowWidth, windowHeight);
background(100);
angleMode(DEGREES);
}
function draw() {
background(0,70);
translate(width/2,height/2);
background(0);
noFill();
stroke(255);
strokeWeight(2);
for (var i=0; i<72; i++) {
var randomHeight = random(innerSize,innerSize+50); //You need to replace this value to the spectrum
var x1 = cos(i*5) * innerSize;
var y1 = sin(i*5) * innerSize;
var x2 = cos(i*5) * randomHeight;
var y2 = sin(i*5) * randomHeight;
line(x1,y1,x2,y2);
}
}