Skip to content

Instantly share code, notes, and snippets.

Created August 31, 2017 02:15
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 anonymous/ccca9cf3e6619aa4ab310359a0501fdb to your computer and use it in GitHub Desktop.
Save anonymous/ccca9cf3e6619aa4ab310359a0501fdb to your computer and use it in GitHub Desktop.
//this fuction draws triangles
//uses 2 parameters (x1,y1)
void drawTriangle(int x1, int y1){
fill(255);
triangle(x1, y1, 20, 20, 200, 200);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment