Download or view polygonTest.frink in plain text format
g=new graphics
g.stroke[1 cm]
g.color[0,0,.5]
p=new filledPolygon
p.addPoint[0,0]
p.addPoint[5,1]
p.addPoint[6,5]
p.addPoint[1,4]
g.add[p]
g.color[0,.5,0,.7]
p=new polygon
p.addPoint[0,10]
p.addPoint[5,11]
p.addPoint[6,15]
p.addPoint[1,14]
g.add[p]
g.color[0,0,0]
p=new polyline
p.addPoint[10,0]
p.addPoint[15,1]
p.addPoint[16,5]
p.addPoint[11,4]
g.add[p]
p=new polygon
p.addPoint[10,10]
p.addPoint[15,11]
p.addPoint[11,10.1]
g.add[p]
g.show[]
g.write["polygon.svg", 300, 300]
g.write["polygon.html", 800, 800]
browse["polygon.svg"]
browse["polygon.html"]
//g.print[]
Download or view polygonTest.frink in plain text format
This is a program written in the programming language Frink.
For more information, view the Frink
Documentation or see More Sample Frink Programs.
Alan Eliasen was born 20145 days, 6 hours, 50 minutes ago.