graphicsTest.frink

Download or view graphicsTest.frink in plain text format

g = new graphics

g.alpha[0.5]
g.rotate[5 degrees, 1, 1]

g.backgroundColor[.2,.2,.5]
g.stroke[0.05]
g.color[0,1,0]
g.line[0,0,1,1]

g.color[1,0,0]
g.drawRectSides[0,0,1,1]

g.stroke[0.05]
g.color[1,1,0]
g.drawEllipseSides[0,0,1,1]

p = new polygon
p.addPoint[0, 2]

img = new image["file:samples/kittyface.jpg"]
g.fitCenter[img,1.5,0.5,1,1]

g.alpha[.5]
img = new image["file:samples/trs80iiib.jpg"]
g.fitCenter[img,0.5,1.5,1,1]
//g.alpha[1]

g.font["SansSerif", .3]
g.color[0,1,1,.5]
g.text["Meow!", 1.2, 1.2, 30 degrees]

g.show[]
g.write["graphicsTest.html", 800, 800]

browse["graphicsTest.html"]

g.write["graphicsTest.svg", 800, 800]
browse["graphicsTest.svg"]


Download or view graphicsTest.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 19355 days, 10 hours, 50 minutes ago.