Skip to content

Instantly share code, notes, and snippets.

Created August 31, 2017 01:47
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/bf6396e45fbff1b8e1bef40dc712b84b to your computer and use it in GitHub Desktop.
Save anonymous/bf6396e45fbff1b8e1bef40dc712b84b to your computer and use it in GitHub Desktop.
/**
* this function depicts a pink square with opaque purple circles on top
* if background is the same colour as the circles they will appear as semi-circles insde of the squares
**/
void circleInSquare(int i, int j) {
fill(255, 0, 100);
noStroke();
rect( i, j, 50, 50);
fill(100, 0, 100, 150);
noStroke();
ellipse( i + 50, j + 50, 60, 90);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment