This is software for the book Nell: An SVG Drawing Language.
The software is free and distributed under the terms of the GNU General Public License. It is written in ANSI C and should compile with any C compiler.
Reads a drawing definition file and expands it into a series of
primitive drawing commands which can be turned into an SVG file using
the nellsvg progam.
Usage: nell ddfile scs mrl ddfile = name of the drawing definition file scs = name of the starting command string mrl = maximum recursion level
Reads the output of the nell program and creates an SVG file.
Usage: nellsvg width height units sw fh width = width of canvas. height = height of canvas. units = px pt pc cm mm in. sw = stroke width in given units. fh = 1 to flip about the horizontal.
- calcfun.c Functions used by the nell program.
- calcfun.h Header file for calcfun.c
To compile these programs you will need an ANSI C compiler such as gcc. These programs are very easily compiled on the command line. With gcc you can compile using the commands:
gcc -lm -o nell calcfun.c nell.c
gcc -lm -o nellsvg nellsvg.c
This will create the nell and nellsvg executables.
When you compile with gcc as above, and you get messages that include the phrase "undefined reference", try moving the "-lm" to the end of the command so it looks like this:
gcc -o nell calcfun.c nell.c -lm
gcc -o nellsvg nellsvg.c -lm
Send comments to: Richard Hollos (richard[AT]exstrom DOT com)
Copyright 2020 by Exstrom Laboratories LLC