8th August 2009: Latest version: 0.9.95
- Three new drawing primitives :
- X - return the turtles x co-ordinate.
- Y - return the turtles y co-ordinate.
- Z - return the turtles z co-ordinate, (3D mode only).
- This is neater than using 'First Pos' or 'Item 2 Pos' etc.
- Two new maths primitives:
- Alea - return a random number between 0 and 1.
- Modulo x y - returns x modulo y.
- See the manual for difference with Remainder x y.
- New primitive:
- SetFontJustify [h v] - control label horizontal and vertical alignment.
- FontJustify - return label alignment list, [h v]
- This is very useful. The horizontal alignment (h) is either 0 (label right of turtle) or 1 (label centred on turtle) or 2 (label left of turtle). Likewise, the vertical alignment (v) is either 0 (label above turtle) or 1 (label centred on turtle) or 2 (label below turtle). Makes it easy to centre label or range left without having to calculate LabelLength.
- New fill primitive:
- FillPolygon [instructions] - a new fill routine.
- The polygon is filled as the instructions to draw it are carried out. This removes the requirement to move the turtle inside a polygon outline in order to then fill it.
- Two new iterative primitives:
- RepeatUntil [instructions] [condition] - repeat instructions until condition is true.
- RepeatWhile [instructions] [condition] - repeat instructions while condition is true.
- Some bugs fixed (as always...)
Change Log