PLEASE DELETE

edited February 2017 in General Discussion

You can delete this question. Thank you.

Answers

  • Well, what do you have so far? Post your code!

    If you have no code, try starting with an empty sketch! Can you do a blue background?

  • edited February 2017 Answer ✓

    float x,y,i; void setup(){size(400,400);} void draw(){ while(i <= 20){ i+=PI/10; x=sin(i)*i*PI+200; y=cos(i)*i*PI+200; ellipse(x,y,i,i); } }

  • Answer ✓

    For an interactive sample, try the following code. Set the mouse close to the top left corner to get your sketch.

    Kf

    float x, y, i;
    float ko=200;  //Repetition frequency
    float ks=200;  //Amplitude
    
    void setup() {
      size(400, 400);
      fill(255);
    }
    
    
    void draw() {
      background(92);
      ko=map(mouseX, 0, width, 5, 400);
      ks=map(mouseY, 0, height, 0.5, 10);
      i=0;
      while (i <= 20) {
        i+=PI/ko;
        x=ks*sin(i)*i*PI+width/2;
        y=ks*cos(i)*i*PI+width/2;
        ellipse(x, y, i, i);
      }
    }
    
Sign In or Register to comment.