Skip to content

Instantly share code, notes, and snippets.

@koji
Created June 28, 2017 04:43
Show Gist options
  • Save koji/cad27e67fba8164182b19fb48e5dc7b2 to your computer and use it in GitHub Desktop.
Save koji/cad27e67fba8164182b19fb48e5dc7b2 to your computer and use it in GitHub Desktop.
vertex
size( 500, 500 );
background(255);
noStroke();
beginShape();
fill(0);
vertex( 100, 100 );
bezierVertex(100,100,150,200,90,300);
endShape();
beginShape();
fill(0);
vertex( 50, 100 );
bezierVertex(50,100, 0,200, 60,300);
endShape();
beginShape();
fill(255,255,0);
vertex(50,100);
vertex(60,300);
vertex(90,300);
vertex(100,100);
endShape();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment