bpo-14117: Make minor tweaks to turtledemo (GH-8002)
The 'wikipedia' example is now 'rosette', describing what it draws. The 'penrose' print output is reduced. The 'tree' '1024' output is eliminated.
This commit is contained in:
parent
d904c238ca
commit
891a1f86d4
|
@ -144,9 +144,6 @@ def test(l=200, n=4, fun=sun, startpos=(0,0), th=2):
|
||||||
draw(l, n, th)
|
draw(l, n, th)
|
||||||
tracer(1)
|
tracer(1)
|
||||||
c = clock()
|
c = clock()
|
||||||
print("Calculation: %7.4f s" % (b - a))
|
|
||||||
print("Drawing: %7.4f s" % (c - b))
|
|
||||||
print("Together: %7.4f s" % (c - a))
|
|
||||||
nk = len([x for x in tiledict if tiledict[x]])
|
nk = len([x for x in tiledict if tiledict[x]])
|
||||||
nd = len([x for x in tiledict if not tiledict[x]])
|
nd = len([x for x in tiledict if not tiledict[x]])
|
||||||
print("%d kites and %d darts = %d pieces." % (nk, nd, nk+nd))
|
print("%d kites and %d darts = %d pieces." % (nk, nd, nk+nd))
|
||||||
|
|
|
@ -49,7 +49,6 @@ def maketree():
|
||||||
t = tree([p], 200, 65, 0.6375)
|
t = tree([p], 200, 65, 0.6375)
|
||||||
for x in t:
|
for x in t:
|
||||||
pass
|
pass
|
||||||
print(len(p.getscreen().turtles()))
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
a=clock()
|
a=clock()
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
Make minor tweaks to turtledemo. The 'wikipedia' example is now 'rosette',
|
||||||
|
decribing what it draws. The 'penrose' print output is reduced. The'1024'
|
||||||
|
output of 'tree' is eliminated.
|
Loading…
Reference in New Issue