MCPcopy Index your code
hub / github.com/python/cpython / yin

Function yin

Lib/turtledemo/yinyang.py:13–35  ·  view source on GitHub ↗
(radius, color1, color2)

Source from the content-addressed store, hash-verified

11from turtle import *
12
13def yin(radius, color1, color2):
14 width(3)
15 color("black", color1)
16 begin_fill()
17 circle(radius/2., 180)
18 circle(radius, 180)
19 left(180)
20 circle(-radius/2., 180)
21 end_fill()
22 left(90)
23 up()
24 forward(radius*0.35)
25 right(90)
26 down()
27 color(color1, color2)
28 begin_fill()
29 circle(radius*0.15)
30 end_fill()
31 left(90)
32 up()
33 backward(radius*0.35)
34 down()
35 left(90)
36
37def main():
38 reset()

Callers 1

mainFunction · 0.85

Calls 4

leftClass · 0.85
rightClass · 0.85
downClass · 0.85
upClass · 0.50

Tested by

no test coverage detected