Skip to content

Instantly share code, notes, and snippets.

@bilalsavas
Created March 11, 2013 12:12

Revisions

  1. bilalsavas created this gist Mar 11, 2013.
    21 changes: 21 additions & 0 deletions keypress_font.pde
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    PFont p;

    void setup()
    {
    size(800, 600);
    p = loadFont("Dialog.plain-48.vlw");
    }

    void draw()
    {
    background(0);
    textFont(p, 32);
    fill(#FFEE00);
    text(a, 10, 50);
    }

    String a = "";
    void keyPressed()
    {
    a+=key;
    }