• fullscreen
  • opg5.pde
  • void setup() {
    size(500, 120);
    textSize(64);
    textAlign(CENTER);
    
    }
    int space = 0;//naming variable space
    void draw() {
      if (keyPressed == true) {
    delay(150);//this delay helps not typing the same letter multiple times
    space = space + 35;//creating space between letter
    text(key,space, 80);//setting the placement on x-axis to space, and writing the letter
    }
    }
    
    

    code

    tweaks (0)

    about this sketch

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

    license

    advertisement

    Peter H. Jørgensen

    180211 opg5

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

    You need to login/register to comment.