Created
January 25, 2018 18:15
-
-
Save n1ckfg/fce9e559846f1eb393402711328e43a0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/* | |
// https://www.w3schools.com/graphics/svg_polygon.asp | |
<svg height="210" width="500"> | |
<polygon points="200,10 250,190 160,210" style="fill:lime;stroke:purple;stroke-width:1" /> | |
</svg> | |
*/ | |
size(500, 210); | |
stroke(128, 0, 128); | |
strokeWeight(1); | |
fill(0,255,0); | |
beginShape(); | |
vertex(200,10); | |
vertex(250,190); | |
vertex(160,210); | |
endShape(CLOSE); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment