z_getpixel.py

Created by cent20

Created on April 19, 2021

255 Bytes


from kandinsky import *
import time

for i in range(32):
  a=i
  b=a+1
  c=b+1
  c = color(a,b,c)
  draw_string("set = "+str(c),10,10)
  set_pixel(5,5,c)
  c = get_pixel(5,5)
  draw_string("get = "+str(c),10,30)
  time.sleep(2)