• fullscreen
  • psychopaint.pde
  • /**
     * Psycho Paint
     *
     * Created by Rene Hangstrup Møller
     *
     * Warming up for the Processing workshop at Open Space Aarhus
     * http://osaa.dk/wiki/index.php/Processingworkshops
     */
     
    void setup() {
      size(400, 400);
      smooth();
      background(0);
      colorMode(HSB);
    }
    
    void draw() {
      filter(BLUR);
      
      if (mousePressed) {
        filter(DILATE);
      } else {
        filter(ERODE);
      }
      
      stroke(frameCount % 256, 255, 255);
      strokeWeight(10);
    
      line(pmouseX, pmouseY, mouseX, mouseY);
        
    }
    
    

    code

    tweaks (0)

    about this sketch

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

    license

    advertisement

    Rene Hangstrup Møller

    Psycho Paint

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

    A small sketch that paints with colors. Press mouse to let colors grow. Release mouse to let colors fade.

    pedersen
    21 Oct 2011
    Ser sjovt ud - faldt over denne smarte variabel i dokumentationen http://processing.org/reference/pmouseX.html kunne sikkert bruges her.
    Tak for tippet. Jeg har oploadet en ny version der bruger pmouseX og pmouseY.
    Christian
    5 Nov 2011
    Good sketch, now I know there's filters :D
    You need to login/register to comment.