Simple Easter animation with a RaspberryPi and a Sense HAT

Here’s a really simple program to display an animated Easter egg and the message “Happy Easter” on a RaspberryPi using the Sense HAT

from sense_hat import SenseHat
import time

sense = SenseHat()

p = (204, 0, 204)   #pink
w = (200, 200, 200) #white
r = [255,0,0]       #red
o = [255,127,0]     #orange
y = [255,255,0]     #yellow
g = [0,255,0]       #green
b = [0,0,255]       #blue
i = [75,0,130]      #indigo
v = [159,0,255]     #violet
e = [0,0,0]   # e is for empty= (0, 102, 102)


egg1 = [e,e,e,p,p,e,e,e,
        e,e,p,p,p,p,e,e,
        e,p,p,b,b,p,p,e,
        e,p,b,y,y,b,p,e,
        e,p,b,y,y,b,p,e,
        e,p,p,b,b,p,p,e,
        e,e,p,p,p,p,e,e,
        e,e,e,p,p,e,e,e,
        ]

egg2 = [e,e,e,b,b,e,e,e,
        e,e,b,b,b,b,e,e,
        e,b,b,p,p,b,b,e,
        e,b,p,y,y,p,b,e,
        e,b,p,y,y,p,b,e,
        e,b,b,p,p,b,b,e,
        e,e,b,b,b,b,e,e,
        e,e,e,b,b,e,e,e,
        ]

while True:
     for i in range(2):
          sense.set_pixels(egg1)
          time.sleep(0.5)
          sense.set_pixels(egg2)
          time.sleep(0.5)
     sense.show_message("Happy Easter!")