graphpaper.frink

View or download graphpaper.frink in plain text format

g= new graphics

g.stroke[.1 mm]

// 1 mm grid, lighter color
g.color[0.7, 0.7, 0.7]

for x=0 in to 8.5 in step 1 mm
   g.line[x, 0 in, x, 11 in]

for y=0 in to 11 in step 1 mm
   g.line[0 in, y, 8.5 in, y]

// darker 1 cm grid
g.color[0,0,0]

for x=0 in to 8.5 in step 1 cm
   g.line[x,0 in, x, 11 in]

for y=0 in to 11 in step 1 cm
   g.line[0 in, y, 8.5 in, y]

g.show[]
g.print[]
g.write["graphpaper.svg", 900, 900]


View or download graphpaper.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 17649 days, 22 hours, 40 minutes ago.