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

Re: Python Turtle Star 

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

Jump:
Jump to board:
Jump to msg. #

Zimbler0:

Re: "That turtle graphics stuff is interesting."
Yup. My early impression is that mastering the language is easy. Mastering the import libraries is the challenge.








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 Turtle Star
By: Zimbler0
in 6TH POPE
Sun, 24 May 20 3:25 AM
Msg. 00543 of 60014

Hey De,
That turtle graphics stuff is interesting.
I found the code to do this :

Uploaded Image

# Turtle star

from turtle import *
color('red', 'yellow')
begin_fill()
while True:
.....forward(200)
.....left(170)
.....if abs(pos()) < 1:
..........break
end_fill()
done()

# Just replace the dots with one or two tabs.

Zim.


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