L-Systems

Commands

L (x1,y1) (x2,y2) col;
Draw a line from (x1,y1) to (x2,y2).

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.
  • The repeat commands are written as if operating on a line from (0,0) to (1,0).
  • 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.
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License