PackageDescription: TurtleGraphics


Turtle Graphics

Last published: August 27, 2018 by 'mtarizzo'

Defines 6 Classes
Extends 7 Classes


TurtleGraphics


This package implements turtle graphics, as seen in Logo.
Fundamental classes :
1) TurtleWorld is the world where one or several turtles can draw in a graphic window.
By now, the window is minimalist (the drawing is done directly in the window graphic context, no menu, no control...)
TurtleWorld act as a proxy between the turtle(s) and the window.
2) TurtleGUI is the graphical window. Graphics are memorized in an internal pixmap, allowing the refresh of the display when necessary.
3) Turtle is the class representing a Logo turtle, with a classical API.

Various examples are on the class side of TurtleExamples

**************

TurtleGraphics est une tentative d'implémentation des routines graphiques inspirées du langage Logo (Minsky & Papert au MIT)
Les classes fondamentales :
1) TurtleWorld représente un monde composé d'une fenêtre d'affichage des graphiques et d'une (ou plusieurs) tortues.
Dans son état actuel, elle comprend par défaut une fenêtre (gérée par TurtleGUI) et une tortue par défaut (Turtle).
Cette classe sert de proxy entre les tortues et l'affichage dans la fenêtre, et se charge du changement du système de coordonnées entre la/les tortues et la fenêtre d'affichage.

2) TurtleGUI représente la fenêtre d'affichage du monde TurtleWorld. Elle ne contient pour le moment aucun contrôle ni menu.
Les graphiques sont tracés dans un pixmap interne et recopiés dans la fenêtre quand nécessaire.

3) Turtle représente une tortue, avec une API classique reproduisant les commandes classiques d'une tortue LOGO.

Voir quelques exemples dans les méthodes de classe de TurtleExamples

NB : Le chargement du package peut réclamer ZLibInterface, nécessaire pour PNGImageWriter (cf TurtleWorld>>savePicture).
Ce package peut être ignoré (mais alors la sauvegarde du graphique sera alors impossible)

**************
Contact : martial . tarizzo -at- gmail . com

Copyright (c) 2018 Martial Tarizzo

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.