var yoff = 0.0;
function setup() {
createCanvas(1400, 1400);
}
function draw() {
background(0);
translate(width / 2, height / 2);
var radius = 180;
beginShape();
var xoff = 0;
for (var a = 0; a < TWO_PI; a += 0.1) {
var offset = map(noise(xoff, yoff), 0, 1, -25, 25);
var r = radius + offset;
var x = r * cos(a);
var y = r * sin(a);
vertex(x, y);
xoff += 0.1;
//ellipse(x, y, 4, 4);
}
endShape();
yoff += 0.01;
}
YOU ARE READING
JavaScript Coding
RandomHello, world! So to start this off I'm not the best writer. However, if you enjoy programing or just video games (and fails) in general then you're in the right place. This is sort of a book I will occasionally post on since coming up with these is...
