I am checking out a Python course at udacity and found an interesting Python module named Turtle. Now let me share with you a simple code that I just have written.import turtledef draw_square(): window = turtle.Screen() window.bgcolor("red") brad = turtle.Turtle() brad.shape("turtle") brad.color("yellow") brad.speed(5) counter = 0 while counter < 36: brad.forward(100) brad.right(90) brad.forward(100) brad.right(90) ...
Original Source
https://codango.com/draw-circle-using-squares/
I am happy to share this resource that we found. The content displayed on this page is property of its original author or their organization.
No comments:
Post a Comment