• fullscreen
  • sketch_aug14b.pde
  • int d=255;
    String s="";
    int r=0;
    void setup() {
    size(d,d);
    textFont(createFont(s,9));
    textSize(d);
    }
    void draw() {
    r=(int)random(95)+1;
    s=""+(char)(r+33);
    background(33+r);
    fill(d-r);
    text(s,0,d);
    }
    

    code

    tweaks (0)

    about this sketch

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

    license

    advertisement

    Patrick May

    Takahashi Glitch

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

    Continued exploration of linking background color and foreground text. Grey scales are used to reduce source code size (one variable instead of 3).

    nick bennett
    14 Aug 2009
    Sweeeet, I love that you left in the carriage returns and some whitespace. :)

    Oh, and the effect itself is also excellent.
    Patrick May
    14 Aug 2009
    Thanks! I had some extra space, so I thought it would be nice to make the code readable.
    You need to login/register to comment.