Noise in Circle
in
Programming Questions
•
1 year ago
Hi to all.
I have the following code of a line that moves randomly (as an audio signal). I want to change this line to be in a circular configuration. How can I change the points of the line to a circle?
Any tips?
- float time = 0;
- void setup() {
- size (500, 500);
- }
- void draw() {
- fill(255, 20);
- rect(0, 0, width, height);
- background(255);
- float x = 0;
- while (x <width) {
- point (x, height*noise(x/105, time));
- x= x + 1;
- }
- time = time + 0.05;
- }
1