Skip to content

Instantly share code, notes, and snippets.

@mrmemmo
Created March 5, 2019 20:27
Show Gist options
  • Save mrmemmo/f328a1f836d5af8c9429ed9b81b05cc6 to your computer and use it in GitHub Desktop.
Save mrmemmo/f328a1f836d5af8c9429ed9b81b05cc6 to your computer and use it in GitHub Desktop.
//button
fill(255,0,0);
rect(10,70,100,40);
fill(255,255,255);
words = words + letter;//add this to keyTyped
void keyPressed() {
if (keyCode == 32) {
words = "";
}
if(keyCode == 37){
words = words.substring(0,words.length()-1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment