Scroll to navigation

flydraw(1) Inline drawing tool flydraw(1)

NAME

flydraw - an inline drawing tool

SYNOPSIS

flydraw

DESCRIPTION

flydraw is an inline drawing tool, which uses libgd to output PNG, JPG, GIF files. It parse its standard input for drawing commands. Each command takes one line.

DRAWING COMMANDS

In the following lines, [color] may be either a color name, or 3 integers between 0 and 255, separated by commas, for the values of red,green,blue.

This command is only available for WIMS OEF and doc, and MUST appear on the first line. Set up animation for fra frames, with del seconds between frames, and rep repetitions (rep=0 means infinite repetition).
Set up an integer which can be called in any evaluation. Used for animation. Direct use of this command must be avoided under WIMS.
Arc segment of an ellipse of width w and hight h centered at (x,y), from angle a1 to angle a2.
Arrow (x1,y1)--->(x2,y2), where l is the length (in pixels) of arrowhead.
Circle of center (x,y) and diameter d (in pixels).
Does nothing.
(Synonym: insert) Insert the region from (x1,y1) to (x2,y2) (in pixels) of [filename] to (x,y). If x1=y1=x2=y2=-1, the whole [filename] is copied.
Insert the region from (x1,y1) to (x2,y2) (in pixels) of [filename], possibly resized, to the region of (dx1,dy1) to (dx2,dy2). If x1=y1=x2=y2=-1, the whole [filename] is copied and resized.
(Synonym: dasharrow dashedarrow) Dashed arrow (x1,y1)- - ->(x2,y2), where l is the length (in pixels) of arrowhead.
(Synonym: dashedhorizontalline dashhorizontalline hdline horizontaldashedline) Dashed horizontal line through (x,y).
(Synonym: dashedline dashline) Dashed line segment (x1,y1)---(x2,y2).
(Synonym: dashedlines) dashlines n dashed line segments (x1,y1)---(x2,y2)---(x3,y3)...
(Synonym: dashedverticaline dashverticalline vdline verticaldashedline) Dashed vertical line through (x,y).
Ellipse with center (x,y), width w and height h.
(Synonym: ball disk filledcircle) Filled circle of center (x,y) and diameter d (in pixels).
(Synonym: filledellipse) Filled ellipse with center (x,y), width w and height h.
(Synonym: flood floodfill) Flood fill the region containing (x,y) with the same original color, by color.
Flood fill by color2 the region containing (x,y) and bounded by color1.
(Synonym: filledpoly filledpolygon fpolygon) Filled polygon (x1,y1)-(x2,y2)-(x3,y3)...
(Synonym: filledrect fillecrectangle frectangle) Filled rectangle with corners (x1,y1) and (x2,y2).
(Synonym: filledsquare) Filled square with sides s (in pixels) and first corner at (x,y).
(Synonym: filledtriangle) Filled triangle with vertices (x1,y1),(x2,y2),(x3,y3).
(Synonym: horizontalline) Horizontal line through (x,y).
Set interlaced image
Turns off brush selection for line drawing.
Turns off tile selection for filling.
A lattice of n1xn2 points starting with (x0,y0), with n1 rows in direction of (x1,y1) and n2 rows in direction of (x2,y2).
(Synonym: seg segment) Line segment (x1,y1)---(x2,y2).
n line segments (x1,y1)---(x2,y2)---(x3,y3)...
Set line width to w (in pixels) for line drawing.
Set a new image of size x,y.
Output the current image to [filename].
n parallel lines starting from (x1,y1)---(x2,y2), with displacement (xv,yv).
Points (all of diameter 1) at (x1,y1), (x2,y2), ...
(Synonym: curve) Plot a curve according to [formula] which can be either an explicit function of x, or a pair of parametric functions in t.
Plotted curve willjump is two consecutive points have distance more than j pixels. Useful to avoid plotting discontinuous functions as continuous. Default value: 200.
(Synonym: plotsteps tstep tsteps) Set the number of point computations in curve plot. Defaults to 100.
A (fat) point at (x,y), whose diameter is equal to linewidth. points [color],x1,y1,x2,y2,... (Fat) points at (x1,y1), (x2,y2), ..., whose diameters are equal to linewidth.
(Synonym: polygon) Polygon (x1,y1)-(x2,y2)-(x3,y3)...
Set the drawing range to [x1,x2] horizontally and [y1,y2] vertically. Note that by default, horizontal range is [0,xsize-1] and vertical range is [ysize-1,0].
Line segments (x0,y0)---(x1,y1), (x0,y0)---(x2,y2), ...
(Synonym: rectangle) Rectangle with corners (x1,y1) and (x2,y2).
Use the image [filename] as a brush for all line draws.
A point (of diameter 1 pixel) at (x,y).
Set the line style to color1,color2,...
Use the image [filename] as a tile for all filling commands.
Set the image size to x pixels horizontally and y pixels vertically.
Square with sides s (in pixels) and first corner at (x,y).
(Synonym: print string write) Write the string at (x,y), with font=small,medium,large or giant.
(Synonym: stringup writeup) Write upwards the string at (x,y), with font=small,medium,large or giant.
(Synonym: ranget) Set the t range to [t1,t2] for parametric curve plotting. Defaults to [0,1].
Makes [color] a transparent color.
Triangle with vertices (x1,y1),(x2,y2),(x3,y3).
(Synonym: verticalline) Vertical line through (x,y).
(Synonym: rangex) Set the horizontal drawing range to [x1,x2]. Defaults to [0,xsize-1].
(Synonym: rangey) Set the horizontal drawing range to [y1,y2]. Defaults to [ysize-1,0].

AUTHORS

Flydraw was completely rewritten to replace a public domain program called Fly by XIAO Gang from the University of Nice (France) in April 2000.

16 June 2002 1.0