Simple Python Turtle Graphic and Code: Rotating Parallelogram 2

preview_player
Показать описание
A series of parallelogram images illustrating the darkening of red to highlight the rotation of the geometric figure.

Feel free to copy the simple Python Turtle code below. Don't hesitate to ask questions about the code if you have any. Enjoy! Please like and subscribe :)

import turtle
t = turtle.Turtle() #Definitions and Initializations
screen = turtle.Screen()
def parallelogram():
r = 255
g = b = 0
for i in range(18): #Python_Graphic start of drawing procedure
parallelogram() #Parallelogram Function call
r -= 8 #Change of Red to a slightly darker shade
Рекомендации по теме
visit shbcf.ru