Turtle Graphics
So far, we have used Dogelog players output call back to display
text. In this tutorial we use it to display line graphics via
turtle graphics. We recently added trigonometric functions and can
demonstrate Turtle graphics. The precision of 64-bit floating
point numbers should be enough for small examples.
- Turtle Commands: The turtle commands are found in the
Prolog text "turtle.p". This Prolog text is loaded by the main
HTML page. More..
- SVG Port: The SVG port is a deviation of the text port
that we normally use to show Dogelog player substitution
answers. More..
- Example Uses: As an example, we were drawing the
Sierpinski triangle. Since the Dogelog player is automatically
yielding, we get a little animation. More..
Kommentare