Skip to content
Snippets Groups Projects
Commit bf47c169 authored by rohieb's avatar rohieb
Browse files

add clearscreen, speedtest and random_pixel clients

parent 5be34b0a
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python
import client
import random
def clear():
pixels = [0] * client.HEIGHT * client.WIDTH
client.blit(0,0,client.WIDTH,client.HEIGHT,pixels)
if __name__=="__main__":
clear()
#!/usr/bin/python
import client
import random
if __name__=="__main__":
while(True):
x = random.random() * client.WIDTH
y = random.random() * client.HEIGHT
client.set_pixel(x,y, 1 if random.random() > 0.5 else 0)
#!/usr/bin/python
import client
import random
if __name__=="__main__":
for y in range(0, client.HEIGHT):
for x in range(0, client.WIDTH):
client.set_pixel(x,y,1)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment