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

Re: Python Yin and Yang

By: Decomposed in 6TH POPE | Recommend this post (0)
Sun, 24 May 20 4:08 AM | 41 view(s)
Boardmark this board | 6th Edition Pope Board
Msg. 00548 of 60014
(This msg. is a reply to 00544 by Zimbler0)

Jump:
Jump to board:
Jump to msg. #

Zimbler0:

Re: "### I'll let you guess where the indents go

### this time."
Piece of cake!








Avatar

Gold is $1,581/oz today. When it hits $2,000, it will be up 26.5%. Let's see how long that takes. - De 3/11/2013 - ANSWER: 7 Years, 5 Months




» You can also:
- - - - -
The above is a reply to the following message:
Python Yin and Yang
By: Zimbler0
in 6TH POPE
Sun, 24 May 20 3:30 AM
Msg. 00544 of 60014

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.


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