« 6TH POPE Home | Email msg. | Reply to msg. | Post new | Board info. Previous | Home | Next

Python Yin and Yang 

By: Zimbler0 in 6TH POPE | Recommend this post (1)
Sun, 24 May 20 3:30 AM | 48 view(s)
Boardmark this board | 6th Edition Pope Board
Msg. 00544 of 60014
Jump:
Jump to board:
Jump to msg. #

And there is this one :

Uploaded Image

def yin(radius, color1, color2):
width(3)
color("black", color1)
begin_fill()
circle(radius/2., 180)
circle(radius, 180)
left(180)
circle(-radius/2., 180)
end_fill()
left(90)
up()
forward(radius*0.35)
right(90)
down()
color(color1, color2)
begin_fill()
circle(radius*0.15)
end_fill()
left(90)
up()
backward(radius*0.35)
down()
left(90)

def main():
reset()
yin(200, "black", "white")
yin(200, "white", "black")
ht()
return "Done!"

if __name__ == '__main__':
main()
mainloop()

# © 2020 GitHub, Inc.

### I'll let you guess where the indents go
### this time.

Zim.




Avatar

Mad Poet Strikes Again.


- - - - -
View Replies (1) »



» You can also:
« 6TH POPE Home | Email msg. | Reply to msg. | Post new | Board info. Previous | Home | Next