Skip to content

Instantly share code, notes, and snippets.

@3158092
Last active October 26, 2017 13:23
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 3158092/1077fcf92fc1570fc50d1b0c9183f2fb to your computer and use it in GitHub Desktop.
Save 3158092/1077fcf92fc1570fc50d1b0c9183f2fb to your computer and use it in GitHub Desktop.
Tattoo
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