Untitled
unknown
plain_text
a year ago
780 B
5
Indexable
# import turtle from turtle import * # import random from random import randint # speed to draw to color speed(0) # size of the pen pensize(10) # colormode should be 255 to # show every type of color colormode(255) # To display the color continuously the # while loop is true while True: # randint will have random color based on # every randint the color will be called color(randint(0, 255), randint(0, 255), randint(0, 255)) # it will begin to fill the circle with color begin_fill() # generate circle circle(20) # it will end to fill color end_fill() # it will start to draw penup() # x axis and y axis goto(randint(-500, 500), randint(-300, 270)) # it will stop to draw pendown()
Editor is loading...
Leave a Comment