Added gerb_freset() to be able to reset file pointer to start of file.
[geda-gerbv/spe.git] / doc / projectfiles.txt
blob5455114baa80bf7d3b5de8feb55254bb5258e457
1 This is short description of the project file format used in gerbv
2 $Id$
4 The parser for project files is based on TinyScheme 1.33 
5 (http://tinyscheme.sourceforge.net/), therefore the syntax of project files
6 resembles Scheme syntax.
8 Current per-layer syntax is:
9 (define-layer! <layer no> <one or several name-value pairs>)
11 Current legal names are:
12 * filename: The value for filename is of course the filename with in ".
13   Example: (cons 'filename "foo.proj")
14 * color: The value for color is a three element array with RGB values,
15   where values can be between 0 and 65536.
16   Example: (cons 'color #(1234 23444 12313))
18 Complete example for layer three is thus:
19 (define-layer! 3 (cons 'filename "foo.proj")(cons 'color #(1234 23444 12313)))
21 As in all Scheme syntax comments are between ; and end-of-line.