I found this image and it looks like it was generated using noise.
I’ve tried a bunch of different variations on the noise() function and have come up with some very interesting images but can’t seem to achieve anything close. Here is where I am at:
[ tried to upload the image that my code created but noob is limited to one image per post??? See next post for the image ]
but here is the code
var centerX;
var centerY;
var radius;
var totalDegrees = 369;
var maxFrames = 180;
function setup() {
createCanvas(
window.innerWidth,
window.innerHeight
);
background(255);
centerX = width / 2;
centerY = height / 2;
radius = 25;
angleMode(DEGREES);
translateX = 0;
translateY = 0;
opacity = 255;
}
function draw() {
if (frameCount > maxFrames) {
noLoop();
}
noFill();
stroke(0, 0, 0, 255);
beginShape();
for (let i=0; i <=totalDegrees; i++) {
var noiseFactor = noise(i / 40, frameCount / 50 * (frameCount + 40)/maxFrames);
var x = centerX + radius * cos(i) * noiseFactor;
var y = centerY + radius * sin(i) * noiseFactor;
vertex(x, y);
}
endShape(CLOSE);
radius += 2;
}
Was hoping someone could give me a nudge in the right direction.
Thanks