HomeSort by relevance Sort by last modified time
    Searched refs:turtle (Results 1 - 25 of 46) sorted by null

1 2

  /external/ImageMagick/PerlMagick/demo/
lsys.pl 6 use Turtle;
12 my ($x, $y) = $turtle->state();
26 $turtle->forward($changes->{"distance"},
29 '-' => sub{ $turtle->turn(-$changes->{"dtheta"}); }, # counter-clockwise
30 '+' => sub{ $turtle->turn($changes->{"dtheta"}); }, # Turn clockwise
31 'M' => sub{ $turtle->mirror(); }, # Mirror
32 '[' => sub{ push(@statestack, [$turtle->state()]); }, # Begin branch
33 ']' => sub{ $turtle->setstate(@{pop(@statestack)}); }, # End branch
60 # Turtle: the midpoint of the bottom edge of the image, pointing up.
61 $turtle=new Turtle($imagesize/2, $imagesize, 0, 1)
    [all...]
  /external/python/cpython3/Doc/includes/
turtle-star.py 1 from turtle import *
  /external/python/cpython2/Demo/turtle/
tdemo_I_dontlike_tiltdemo.py 2 """ turtle-example-suite:
8 turtle shape
15 from turtle import *
tdemo_paint.py 2 """ turtle-example-suite:
8 - left mouse button moves turtle
11 (no line drawn when the turtle moves) and
22 from turtle import *
tdemo_peace.py 2 """ turtle-example-suite:
9 it only uses turtle commands.
12 from turtle import *
tdemo_yinyang.py 2 """ turtle-example-suite:
14 from turtle import *
turtleDemo.py 10 import turtle
50 ('About turtle module', "about_turtle.txt"),
56 self.root = root = turtle._root = Tk()
57 root.title('Python turtle-graphics examples')
129 turtle._Screen._root = root
132 turtle._Screen._canvas = self._canvas = canvas = turtle.ScrolledCanvas(
138 self.screen = _s_ = turtle.Screen()
139 turtle.TurtleScreen.__init__(_s_, _s_._canvas)
141 turtle.RawTurtle.screens = [_s_
    [all...]
tdemo_nim.py 0 """ turtle-example-suite:
13 import turtle
89 class Stick(turtle.Turtle):
91 turtle.Turtle.__init__(self, visible=False)
124 self.writer = turtle.Turtle(visible=False)
218 mainscreen = turtle.Screen()
226 turtle.mainloop(
    [all...]
tdemo_chaos.py 7 from turtle import *
tdemo_colormixer.py 3 from turtle import Screen, Turtle, mainloop
5 class ColorTurtle(Turtle):
8 Turtle.__init__(self)
9 self.shape("turtle")
48 writer = Turtle()
tdemo_lindenmayer_indian.py 2 """ turtle-example-suite:
12 which can easily be implemented with turtle
28 from turtle import *
tdemo_tree.py 2 """ turtle-example-suite:
14 (2) Turtle-cloning: At each branching point
18 from turtle import Turtle, mainloop
40 p = Turtle()
tdemo_two_canvases.py 9 from turtle import TurtleScreen, RawTurtle, TK
32 t.shape("turtle")
tdemo_wikipedia.py 0 """ turtle-example-suite:
6 inspired by the Wikipedia article on turtle
10 example) copies of our first turtle p.
16 from turtle import Screen, Turtle, mainloop
39 p=Turtle()
  /external/python/cpython3/Lib/turtledemo/
paint.py 2 """ turtle-example-suite:
8 - left mouse button moves turtle
11 (no line drawn when the turtle moves) and
22 from turtle import *
peace.py 2 """ turtle-example-suite:
9 it only uses turtle commands.
12 from turtle import *
yinyang.py 2 """ turtle-example-suite:
14 from turtle import *
__main__.py 62 turtle. Global variables should be initialized in main().
84 code should catch the turtle.Terminator exception that will be
97 import turtle
123 ('About turtle module', turtle.__doc__),
131 self.root = root = turtle._root = Tk()
132 root.title('Python turtle-graphics examples')
233 turtle._Screen._root = root
236 turtle._Screen._canvas = self._canvas = canvas = turtle.ScrolledCanvas
    [all...]
nim.py 0 """ turtle-example-suite:
13 import turtle
89 class Stick(turtle.Turtle):
91 turtle.Turtle.__init__(self, visible=False)
124 self.writer = turtle.Turtle(visible=False)
218 mainscreen = turtle.Screen()
226 turtle.mainloop(
    [all...]
chaos.py 7 from turtle import *
colormixer.py 3 from turtle import Screen, Turtle, mainloop
5 class ColorTurtle(Turtle):
8 Turtle.__init__(self)
9 self.shape("turtle")
48 writer = Turtle()
lindenmayer.py 2 """ turtle-example-suite:
12 which can easily be implemented with turtle
28 from turtle import *
rosette.py 0 """ turtle-example-suite:
6 inspired by the Wikipedia article on turtle
10 example) copies of our first turtle p.
16 from turtle import Screen, Turtle, mainloop
39 p=Turtle()
  /external/python/cpython2/Lib/test/
test_turtle.py 5 turtle = support.import_module('turtle') variable
6 Vec2D = turtle.Vec2D
25 exampleturtle = turtle
27 title = Python Turtle Graphics
61 parsed_cfg = turtle.config_dict(cfg_name)
80 'exampleturtle': 'turtle',
82 'title': 'Python Turtle Graphics',
91 parsed_cfg = turtle.config_dict(cfg_name)
108 parsed_cfg = turtle.config_dict(cfg_name
    [all...]
  /external/python/cpython3/Lib/test/
test_turtle.py 5 turtle = support.import_module('turtle') variable
6 Vec2D = turtle.Vec2D
25 exampleturtle = turtle
27 title = Python Turtle Graphics
61 parsed_cfg = turtle.config_dict(cfg_name)
80 'exampleturtle': 'turtle',
82 'title': 'Python Turtle Graphics',
91 parsed_cfg = turtle.config_dict(cfg_name)
108 parsed_cfg = turtle.config_dict(cfg_name
    [all...]

Completed in 454 milliseconds

1 2