Noisy Circle Points
in
Programming Questions
•
11 months ago
Hello friends - my sympathies to all East US fellas for hurricane Sandy.
So, in my following sketch I am trying to visualize a few points in a circular form that each one of them has a different noise float variable. I am getting errors, so if anyone would like to give a hint or tip be my guest!
- float x, y;
- float radiusCircle = 100;
- float[] noises;
- float noiseVar = 0.00f;
- float timer = 0.00f;
- float timerAmount = -100f;
- void setup() {
- size(400, 400);
- frameRate(30);
- translate(width/2, height/2);
- background(60);
- smooth();
- for (float i = 0; i < 10; i++) {
- noises[i] = new float[i];
- }
- }
- void draw() {
- stroke(255);
- strokeWeight(5);
- timer = timer + timerAmount / frameRate;
- for (float i = 0.314; i < 2*PI; i += .314) {
- noises[i] = noise((timer+i) * 0.005, (-timer + i) * 0.005, i * 0.005);
- x = cos(i) * radiusCircle;
- y = sin(i) * radiusCircle;
- point(x*noises[i], y*noises[i]);
- }
- }
1