Commit 7a984dc3 by BellCodeEditor

auto save

parent 3c10bab6
Showing with 22 additions and 10 deletions
import turtle import pygame
turtle.speed(100) pygame.init()
color=['red','blue','grey','green'] width=400
turtle.bgcolor("black") height=300
for i in range(300): windowSize=[width,height]
turtle.pencolor(color[i%4]) screen=pygame.display.set_mode(windowSize)
turtle.forward(i) colour=pygame.color.Color('#646400')
turtle.right(91) row=0
turtle.done() done=False
\ No newline at end of file while not done:
increment=255/100
while row<=height:
pygame.draw.rect(screen,colour,(0,row,width,row+increment))
pygame.display.flip()
if colour[2]+increment<255:
colour[2]+=increment
row+=increment
for event in pygame.event.get():
if event.type==pygame.QUIT:
done=True
pygame.quit()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment