Skip to content

Instantly share code, notes, and snippets.

@lmccart
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lmccart/11052282 to your computer and use it in GitHub Desktop.
Save lmccart/11052282 to your computer and use it in GitHub Desktop.
html manipulation
var element;
function setup() {
element = createHTML("You chose the color ______");
element.style("color:blue");
}
function draw() {
}
function mousePressed() {
element.style("color:red");
element.html("You chose the color red.");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment