Skip to content

Instantly share code, notes, and snippets.

@danaabs
Created September 30, 2015 14:29
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 danaabs/2a8b944f2b1ec60205b6 to your computer and use it in GitHub Desktop.
Save danaabs/2a8b944f2b1ec60205b6 to your computer and use it in GitHub Desktop.
Ghost Simple
function ghost(x, y, r, g, b) {
//body
stroke(r, g, b);
fill(r, g, b);
arc(x, y, 40, 60, 180, 360, CHORD);
rect(x+15, y, 5, 5);
rect(x+4, y, 5, 5);
rect(x-8, y, 5, 5);
rect(x-20, y, 5, 5);
//eyes
fill(255);
stroke(255);
ellipse(x-5, y-15, 5, 5);
ellipse(x+5, y-15, 5, 5);
stroke(0);
ellipse(x-5, y-15, 1, 1);
ellipse(x+5, y-15, 1, 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment