Created
August 31, 2017 01:47
-
-
Save anonymous/bf6396e45fbff1b8e1bef40dc712b84b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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