• fullscreen
  • sketch62653.pde
  • int a;
    float b;
    
    void setup() {
      size(300, 300);
    }
    
    void draw() {
      background(255);
    
      a = 0;
      b = 0.0;
    
      while (a < 300) {
        stroke(b*20, 0, 0);
        strokeWeight(b);
        point(a, 150);
        a = a + 50;
        b = b + 2.55;
      }
    }

    code

    tweaks (0)

    about this sketch

    This sketch is running in HTML5 using Processingjs.

    license

    advertisement

    melbo

    While-Loop

    Add to Faves Me Likey@!
    You must login/register to add this sketch to your favorites.

    You need to login/register to comment.