GraphicsGridTest.frink

Download or view GraphicsGridTest.frink in plain text format


use GraphicsGrid.frink

/** This tests GraphicsGrid.frink */

gg = new GraphicsGrid[]
for x = 1 to 12
{
   g = new graphics
//   g.color[0,0,0]
   g.drawRectSides[-6,-6,6,6]
   g.caption[x]
   g.color[randomFloat[0,1], randomFloat[0,1], randomFloat[0,1]]
   for c = 1 to 6
      g.fillEllipseCenter[randomFloat[-5, 5], randomFloat[-5, 5], 1, 1]

   gg.add[g]
}

g1 = gg.layout[]
g1.show[]
g1.write["GraphicsGrid.svg", 1000, 1000]
g1.write["GraphicsGrid.html", 1000, 1000]
g1.write["GraphicsGrid.png", 1000, 1000]
g1.write["GraphicsGrid.jpg", 1000, 1000]


Download or view GraphicsGridTest.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, eliasen@mindspring.com