flydraw(1)

πŸ’– flydraw(1) πŸ’–

okay so welcome to flydraw(1), bestie β€” this is the manual for an inline drawing tool, and by the end of this page you're gonna be drawing circles, plotting curves and feeling like a whole main character. no cap. ✨


🌸 NAME 🌸

flydraw β€” an inline drawing tool 🎨


✨ SYNOPSIS ✨

flydraw

πŸ¦‹ DESCRIPTION πŸ¦‹

So flydraw is an inline drawing tool, and it uses libgd to output PNG, JPG and GIF files. iconic behaviour honestly. πŸ’…

It parses its standard input for drawing commands, and every single command takes exactly one line. that's the whole vibe β€” feed it lines, get art. πŸŽ€


🎨 DRAWING COMMANDS 🎨

heads up before we dive in: in all of the lines below, [color] can be either a color name, or 3 integers between 0 and 255 separated by commas, giving the values of red, green, blue. choose your fighter. 🌈

  • animate fra,del,rep β€” this one is only available for WIMS OEF and doc, and it MUST appear on the very first line. it sets up animation for fra frames, with del seconds between frames, and rep repetitions (rep=0 means infinite repetition). forever and ever and ever. πŸ”
  • animstep n β€” sets up an integer that can be called in any evaluation. used for animation. > direct use of this command must be avoided under WIMS, so pls don't be that girl. πŸ™ˆ
  • arc x,y,w,h,a1,a2,[color] β€” an arc segment of an ellipse of width w and hight h centered at (x,y), from angle a1 to angle a2. yes it says "hight", we love her anyway. 🫢
  • arrow x1,y1,x2,y2,l,[color] β€” an arrow (x1,y1)--->(x2,y2), where l is the length (in pixels) of the arrowhead. pointing, slaying, all of it. ➑️
  • circle x,y,d,[color] β€” a circle with center (x,y) and diameter d (in pixels). β­•
  • comment β€” does nothing. literally nothing. a true icon of doing the absolute least. πŸ’€
  • copy x,y,x1,y1,x2,y2,[filename] β€” (synonym: insert) inserts 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. πŸ“‹
  • copyresized x1,y1,x2,y2,dx1,dy1,dx2,dy2,[filename] β€” inserts 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. glow up included. ✨
  • darrow x1,y1,x2,y2,l,[color] β€” (synonym: dasharrow dashedarrow) a dashed arrow (x1,y1)- - ->(x2,y2), where l is the length (in pixels) of the arrowhead. the dashes are the fit. πŸ‘‘
  • dhline x,y,[color] β€” (synonym: dashedhorizontalline dashhorizontalline hdline horizontaldashedline) a dashed horizontal line through (x,y). βž–
  • dline x1,y1,x2,y2,[color] β€” (synonym: dashedline dashline) a dashed line segment (x1,y1)---(x2,y2). βœ‚οΈ
  • dlines [color],x1,y1,x2,y2,x3,y3... β€” (synonym: dashedlines dashlines) n dashed line segments (x1,y1)---(x2,y2)---(x3,y3)... so many dashes, so little time. 🌟
  • dvline x,y,[color] β€” (synonym: dashedverticaline dashverticalline vdline verticaldashedline) a dashed vertical line through (x,y). πŸͺ‘
  • ellipse x,y,w,h,[color] β€” an ellipse with center (x,y), width w and height h. squished circle, still gorgeous. πŸ’œ
  • fcircle x,y,d,[color] β€” (synonym: ball disk filledcircle) a filled circle with center (x,y) and diameter d (in pixels). solid. πŸ“
  • fellipse x,y,w,h,[color] β€” (synonym: filledellipse) a filled ellipse with center (x,y), width w and height h. 🧚
  • fill x,y,[color] β€” (synonym: flood floodfill) flood fills the region containing (x,y) with the same original color, by color. πŸͺ£
  • filltoborder x,y,[color1],[color2] β€” flood fills by color2 the region containing (x,y) and bounded by color1. staying in your lane, literally. 🚧
  • fpoly [color],x1,y1,x2,y2,x3,y3... β€” (synonym: filledpoly filledpolygon fpolygon) a filled polygon (x1,y1)-(x2,y2)-(x3,y3)... πŸ”Ί
  • frect x1,y1,x2,y2,[color] β€” (synonym: filledrect fillecrectangle frectangle) a filled rectangle with corners (x1,y1) and (x2,y2). πŸ”²
  • fsquare x,y,s,[color] β€” (synonym: filledsquare) a filled square with sides s (in pixels) and first corner at (x,y). ◼️
  • ftriangle x1,y1,x2,y2,x3,y3,[color] β€” (synonym: filledtriangle) a filled triangle with vertices (x1,y1),(x2,y2),(x3,y3). πŸ”»
  • hline x,y,[color] β€” (synonym: horizontalline) a horizontal line through (x,y). βž–
  • interlace β€” sets an interlaced image. old-school cool, ngl. πŸ“Ί
  • killbrush β€” turns off brush selection for line drawing. bye bestie πŸ‘‹
  • killtile β€” turns off tile selection for filling. also bye πŸ‘‹
  • lattice x0,y0,x1,y1,x2,y2,n1,n2,[color] β€” a lattice of n1xn2 points starting with (x0,y0), with n1 rows in the direction of (x1,y1) and n2 rows in the direction of (x2,y2). the way it grids... πŸ•ΈοΈ
  • line x1,y1,x2,y2,[color] β€” (synonym: seg segment) a line segment (x1,y1)---(x2,y2). ✏️
  • lines [color],x1,y1,x2,y2,x3,y3... β€” n line segments (x1,y1)---(x2,y2)---(x3,y3)... 🌠
  • linewidth w β€” sets the line width to w (in pixels) for line drawing. thick. juicy. πŸ”₯
  • new x,y β€” sets a new image of size x,y. blank canvas era. πŸ–ΌοΈ
  • output [filename] β€” outputs the current image to [filename]. the moment of reveal. 🎁
  • parallel x1,y1,x2,y2,xv,yv,n,[color] β€” n parallel lines starting from (x1,y1)---(x2,y2), with displacement (xv,yv). they're all matching, it's a coordinated group chat fit. πŸ’ž
  • pixels [color],x1,y1,x2,y2,... β€” points (all of diameter 1) at (x1,y1), (x2,y2), ... βšͺ
  • plot [color],[formula] β€” (synonym: curve) plots a curve according to [formula], which can be either an explicit function of x, or a pair of parametric functions in t. math girlies rise πŸ“ˆ
  • plotjump j β€” the plotted curve will jump if two consecutive points have a distance of more than j pixels. super useful to avoid plotting discontinuous functions as continuous. default value: 200. πŸ™…β™€οΈ
  • plotstep n β€” (synonym: plotsteps tstep tsteps) sets the number of point computations in curve plot. defaults to 100. πŸ”’
  • point x,y,[color] β€” 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. ⚫
  • poly [color],x1,y1,x2,y2,x3,y3... β€” (synonym: polygon) a polygon (x1,y1)-(x2,y2)-(x3,y3)... πŸ“
  • range x1,x2,y1,y2 β€” sets the drawing range to [x1,x2] horizontally and [y1,y2] vertically. note that by default, the horizontal range is [0,xsize-1] and the vertical range is [ysize-1,0]. know your limits πŸ’…
  • rays [color],x0,y0,x1,y1,x2,y2... β€” line segments (x0,y0)---(x1,y1), (x0,y0)---(x2,y2), ... all radiating from one point. main character energy fr. β˜€οΈ
  • rect x1,y1,x2,y2,[color] β€” (synonym: rectangle) a rectangle with corners (x1,y1) and (x2,y2). πŸ”³
  • setbrush [filename] β€” uses the image [filename] as a brush for all line draws. πŸ–ŒοΈ
  • setpixel x,y,[color] β€” a point (of diameter 1 pixel) at (x,y). tiny but mighty. ✨
  • setstyle [color1],[color2],... β€” sets the line style to color1,color2,... 🌈
  • settile [filename] β€” uses the image [filename] as a tile for all filling commands. 🧱
  • size x,y β€” sets the image size to x pixels horizontally and y pixels vertically. πŸ“
  • square x,y,s,[color] β€” a square with sides s (in pixels) and first corner at (x,y). ⬜
  • text [color],x,y,[font],[string] β€” (synonym: print string write) writes the string at (x,y), with font=small,medium,large or giant. the range of sizes, we love options. πŸ”€
  • textup [color],x,y,[font],[string] β€” (synonym: stringup writeup) writes the string upwards at (x,y), with font=small,medium,large or giant. vertical text, very editorial. ↕️
  • trange t1,t2 β€” (synonym: ranget) sets the t range to [t1,t2] for parametric curve plotting. defaults to [0,1]. πŸŒ€
  • transparent [color] β€” makes [color] a transparent color. ghost mode activated πŸ‘»
  • triangle x1,y1,x2,y2,x3,y3,[color] β€” a triangle with vertices (x1,y1),(x2,y2),(x3,y3). πŸ”Ί
  • vline x,y,[color] β€” (synonym: verticalline) a vertical line through (x,y). πŸͺœ
  • xrange x1,x2 β€” (synonym: rangex) sets the horizontal drawing range to [x1,x2]. defaults to [0,xsize-1]. ↔️
  • yrange y1,y2 β€” (synonym: rangey) sets the horizontal drawing range to [y1,y2]. defaults to [ysize-1,0]. yes bestie, the original says "horizontal" here even though it's the y one β€” we're just reporting the lore exactly as it was written. πŸ’€

πŸ‘‘ 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. a total glow-up, honestly. πŸ¦‹


and that's the whole page, bestie 🫢 this was version 1.0, dated 16 June 2002 β€” yeah, she's vintage, she's iconic, she still slays. go draw something gorgeous with her. πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from