stilllot.blogg.se

The forest mod api documentation
The forest mod api documentation





the forest mod api documentation

Return the current fillcolor as color specification string, possibly fillcolor ( * args ) ¶įour input formats are allowed: fillcolor() To use multiple turtles on a screen one has to use the object-oriented interface.

the forest mod api documentation

An (unnamed) turtle object isĪutomatically created whenever any of the functions derived from a Turtle method A screen object is automatically created whenever aįunction derived from a Screen method is called.

the forest mod api documentation

The procedural interface provides functions which are derived from the methods Which draws on “the” Screen instance which is automaticallyĪll methods of RawTurtle/Turtle also exist as functions, i.e. Or TurtleScreen as argument, so the RawTurtle objects know where to draw.ĭerived from RawTurtle is the subclass Turtle (alias: Pen), Its constructor needs a Canvas, ScrolledCanvas RawTurtle (alias: RawPen) defines Turtle objects which draw Turtle is used as a standalone tool for doing graphics.Īs a singleton object, inheriting from its class is not possible.Īll methods of TurtleScreen/Screen also exist as functions, i.e. The function Screen() returns a singleton object of a Its constructor needs a tkinter.Canvas or a

#The forest mod api documentation windows

The TurtleScreen class defines graphics windows as a playground for The object-oriented interface uses essentially two+two classes: Graphics, it needs a version of Python installed with Tk support. Because it uses tkinter for the underlying The turtle module provides turtle graphics primitives, in both object-orientedĪnd procedure-oriented ways. The module from within IDLE run with the -n switch. Programmer to use all the commands, classes and methods interactively when using This means in the first place to enable the learning It tries to keep the merits of the old turtle module and to be (nearly) 100%Ĭompatible with it. Module from the Python standard distribution up to version Python 2.5. The turtle module is an extended reimplementation of the same-named Translation of docstrings into different languagesĬmd - Support for line-oriented command interpretersįrom turtle import * color ( 'red', 'yellow' ) begin_fill () while True : forward ( 200 ) left ( 170 ) if abs ( pos ()) Methods specific to Screen, not inherited from TurtleScreen.Methods of TurtleScreen/Screen and corresponding functions.Methods of RawTurtle/Turtle and corresponding functions.Overview of available Turtle and Screen methods.







The forest mod api documentation