ArcTest.frink

Download or view ArcTest.frink in plain text format


// Test circular arcs and bounding rectangles.

g = new graphics
g.backgroundColor[.8, .8, .8]
g.stroke[.1]

p = new GeneralPath

p.moveTo[35,0]
p.lineTo[40,0]
p.circularArc[0,0, 10 degrees]

g.add[p]
g.show[]
g.write["arc.svg", 600, 600]
g.write["arc.html", 600, 600]
browse["arc.html"]


g = new graphics

p = new GeneralPath
p.moveTo[0, 35]
p.lineTo[0, 40]
p.circularArc[0,0, 90 degrees]

g.add[p]
g.show[]
g.write["arc2.html", 800, 800]
browse["arc2.html"]


g = new graphics
g.stroke[1 cm]

//g.line[35,0, 40,0]

p = new GeneralPath

p.moveTo[3 in, 0 in]
p.circularArc[0 in, 0 in, 220 degrees]

g.add[p]
g.show[]
//g.print[]


Download or view ArcTest.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 20217 days, 23 hours, 55 minutes ago.