Line Designs
Commands
- L (x1,y1) (x2,y2) col;
- Draw a line from (x1,y1) to (x2,y2) in colour col.
- D (x1,y1) (x2,y2) (x3,y3) (x4,y4) col;
- Draw a line design from line (x1,y1)-(x2,y2) to line (x3,y3)-(x4,y4) using num lines in colour col.
- C (x1,y1) rad, n1, n2, col;
- Draw a circle design centred at (x1,y1) with radius rad using n1 points around the circle, and joining points spaced n2 apart with lines in colour col.
Notes
- The grid is a set of coordinate axes -250 < x < 250 and -250 < y < 250. This puts the origin (0,0) in the centre of the image.
- Colours can be specified with a colour name (eg. blue) or by a Red-Green-Blue colour function (eg. rgb(0, 0, 255)).
- Commands are terminated with a semi-colon (;), hence can be spread across several lines.
- Spacing between numbers and punctuation is optional - it is used in the examples for aesthetic reasons.
page revision: 17, last edited: 13 Oct 2010 10:40






