Ejemplo n.º 1
0
def get_screen():
    # get the screen width/height
    return picounicorn.get_width(), picounicorn.get_height()
Ejemplo n.º 2
0
        return v, t, p
    if i == 1:
        return q, v, p
    if i == 2:
        return p, v, t
    if i == 3:
        return p, q, v
    if i == 4:
        return t, p, v
    if i == 5:
        return v, p, q


#Define setup variables
w = picounicorn.get_width()  #16
h = picounicorn.get_height()  #7
startballx = 7
startbally = 3
startdirH = 1
startdirV = 0
startscoreXY = 0
startscoreAB = 0
onlistAB = [2, 3, 4]
onlistXY = [2, 3, 4]

#Create lists of pixels for the height/width of the whole display/ball area
listW = []  #makes a list 0-15
for i in range(w):
    listW.append(i)

listH = []  #makes a list 0-6
def set_all(r, g, b):
    w = picounicorn.get_width()
    h = picounicorn.get_height()
    for x in range(w):
        for y in range(h):
            picounicorn.set_pixel(x, y, r, g, b)