• fullscreen
  • arielboloten_interactivitymotion1.pde
  • void setup ()
    {
    size (250, 250);
    smooth ();
    }
    int space = 25;
    float influence = 50;
    float minRadius = 10;
    float maxRadius = 100;
    
    void draw(float kontur, float _r, float _g, float _b, float _alpha) 
    {
    strokeWeight(kontur);
    fill(_r, _g, _b, _alpha);
     
    for(int x = 15; x < width; x += space)
    {
    for(int y = 15; y < height; y += space)
    {
    float radius = 1-(min(dist (x,y,mouseX,mouseY),influence)/influence);
    radius = lerp (minRadius, maxRadius,radius);
    ellipse (x,y,radius,radius);
    }
    }  
    }
    void draw ()
    {
    background (#B207F7);
    draw(0, 255, 255, 255, 100);
    }
    
    

    code

    tweaks (0)

    about this sketch

    This sketch is running as Java applet, exported from Processing.

    license

    advertisement

    hvb,jh

    Interactivity Motion 1

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

    You need to login/register to comment.