hexaflexagon.frink

View or download hexaflexagon.frink in plain text format


g = new graphics

for x=1 to 10
{
   p = new polygon
   p.addPoint[x,0]
   p.addPoint[x+1,0]
   p.addPoint[x + 1/2, -sqrt[3]/2]
   g.add[p]
}

g.line[3/2, -sqrt[3]/2, 10 + 1/2, -sqrt[3]/2]

g.write["hexaflexagon.svg", 1000, 300]
g.show[]
   
//g.printTiled[2,1]


View or download hexaflexagon.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 17596 days, 22 hours, 1 minutes ago.