Advertisement
here2share

# t_50x50_Each_Pixel_A_Random_Color_Test.py

Apr 9th, 2021
1,323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. # t_50x50_Each_Pixel_A_Random_Color_Test.py
  2.  
  3. from turtle import*
  4. from random import*
  5. ht()
  6. pu()
  7. ww=50
  8. hh=50
  9. w2=ww/2
  10. h2=hh/2
  11. R=randint
  12. colormode(255)
  13. while 1:
  14.     tracer(0)
  15.     for y in range(hh,0,-1):
  16.         goto(0,y)
  17.         for x in range(ww):
  18.             goto(x-w2,y-h2)
  19.             dot(3,(R(0,255),R(0,255),R(0,255)))
  20.     update()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement