xxxxxxxxxx
52
var lines = [];
function setup() {
createCanvas(400, 400);
angleMode(DEGREES);
}
function draw() {
background(0);
lotsOfLines();
circles();
//quotes();
}
function lotsOfLines(){
for(i = 0; i < width; i++){
lines[i] = 4;
}
strokeWeight(5);
for(i = 0; i < lines.length; i+= 30){
stroke(random(0, 200));
line(i, 0, i, height);
}
noLoop();
}
function circles(){
push();
translate(width / 1.7, height / 2);
noFill();
colorMode(HSB, 360);
strokeWeight(2);
for (i = 0; i < 360; i += 3){
let angle = i;
// angle += frameCount;
let x = map(cos(angle), 0, 1, 0, 150);
let y = map(sin(angle), 0, 1, 0, 150);
circle(x, y, i / 0.5);
stroke(i + 1, 120, 360);
}
pop();
}
// function quotes(){
// push();
// translate(300, 365);
// textSize(12);
// textFont('Helvetica');
// text('Unicorn Farts~', 12, 30);
// pop();
// }