Last active
October 26, 2017 13:23
-
-
Save 3158092/1077fcf92fc1570fc50d1b0c9183f2fb to your computer and use it in GitHub Desktop.
Tattoo
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
void setup(){ | |
size (400,400); | |
background (255); | |
smooth(); | |
//Referene https://www.cut-the-knot.org/Curriculum/Geometry/KanizsaTriangle.jpg | |
// Reference: http://philschatz.com/physics-book/resources/Figure_28_03_03a.jpg | |
} | |
void draw(){ | |
translate (width/2, height/2); | |
for (int i = 0 ; i < 10; i++){ | |
int xpos = 60; | |
int ypos = 60; | |
noFill(); | |
stroke(3); | |
ellipse (-xpos, ypos, 20*i, 20*i); | |
ellipse (xpos, ypos, 20*i, 20*i); | |
ellipse (0, -ypos+29, 20*i, 20*i); | |
fill(255); | |
noStroke(); | |
triangle(-xpos, ypos, xpos,ypos, 0, -ypos+29); | |
} | |
/* ellipse(-100, 100,120,120); | |
ellipse(100, 100,120,120); | |
ellipse(0, -100,120,120); | |
fill(255); | |
triangle(-100, 100, 100, 100, 0, -100); */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment