Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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