circleTest.frink

View or download circleTest.frink in plain text format


// Sample to draw overlapping transparent circles.

g = new graphics
g.color[0, 0, 1, 0.5] // Blue, half-transparent
g.fillEllipseCenter[0,-2,10,10]

g.color[1, 0, 0, 0.5] // Red, half-transparent
g.fillEllipseCenter[3,3,10,10]

g.color[1, 1, 0, 0.5] // Yellow, half-transparent
g.fillEllipseCenter[-3,3,10,10]

g.show[]
g.write["circle.jpg", 200, 200]
g.write["circle.png", 200, 200]
g.writeTransparent["circleTrans.png", 200, 200]
g.write["circle.svg", 200, 200]


View or download circleTest.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 18011 days, 15 hours, 48 minutes ago.