[Home]Fly

Generate GIF Images On-The-Fly!

File: doodle.fly

 new
 size 100,100
 # white background
 fill 1,1,255,255,255
 # gray square
 fsquare 20,20,20,128,128,128
 # purple circle
 fcircle 50,50,20,128,0,128
 string 0,128,128,10,70,small,foo!
 # transparent background from white pixels
 transparent 255,255,255
 name doodle.gif
 end

The incantation:

fly -i doodle.fly -o doodle.gif

See:

   * http://martin.gleeson.com/fly/installation.html
   * http://www.rime.com.au/gd/

If you have trouble building the latest and greatest, which is very likely, you may get this source tarball which I have prepared which will produce a good working version of fly:

   * http://inferno.slug.org/tarballs/fly-1.6.5.tar.bz2


What you get by running fly -h on my packaged version:

 fly, version 1.6.5

 Quick Reference to Directives: 

 new
 size x,y
 name filename.gif

 line    x1,y1,x2,y2,R,G,B             dline        x1,y1,x2,y2,R,G,B 
 rect    x1,y1,x2,y2,R,G,B             frect        x1,y1,x2,y2,R,G,B 
 square  x,y,s,R,G,B                   fsquare      x,y,s,R,G,B 
 poly    R,G,B,x1,y1...,xn,yn          fpoly        R,G,B,x1,y1...,xn,yn 
 fill    x,y,R,G,B                     filltoborder x,y,R1,G1,B1,R2,B2,G2 
 arc     x1,y1,w,h,start,finish,R,G,B  
 ellipse x1,y1,w,h,R,G,B  
 circle  x,y,d,R,G,B                   fcircle      x,y,d,R,G,B 

 string   R,G,B,x,y,<size>,<string> 
 stringup R,G,B,x,y,<size>,<string> 
 (size = tiny, small, medium, large or giant) 

 copy         x,y,x1,y1,x2,y2,filename.gif 
 copyresized  x1,y1,x2,y2,dx1,dy1,dx2,dy2,filename.gif 

 setpixel     x,y,R,G,B 
 getpixel     x,y 
 colourchange R1,G1,B1,R2,G2,B2 
 transparent  R,G,B 
 interlace 

 setbrush    filename.gif                         killbrush 
 settile     filename.gif                         killtile 
 setstyle    R1,G1,B1,R2,G2,B2,...,Rn,Bn,Gn       killstyle 

 sizex 
 sizey 
 rotate      deg 

 end

Silverlake Linux Users Group Wiki | Recent Changes | Preferences
Password required to edit | View other revisions
Last edited December 7, 2002 1:41 pm by inferno.slug.org (diff)
Search: