Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
493 B
0
Indexable
a = (255, 255, 255) # Blanc
b = (255,207,172)
f = (0,163,238)
d = (255,196,126)
r = (255,0,0)
n = (138,0,0)
j = (255,194,22)

rvb = sense.color # obtenir la couleur du capteur
c = (rvb.red, rvb.green, rvb.blue) # utiliser la couleur détectée
image = [
f,d,b,b,d,b,f,f,
b,d,d,d,b,d,b,f,
d,d,b,b,d,b,d,d,
f,d,d,d,d,d,d,f,
a,f,f,d,d,a,f,a,
f,a,f,n,r,f,a,f,
f,f,n,j,r,n,f,f,
j,n,r,n,j,n,j,n] 
sense.set_pixels(image)
sleep(3)
sense.show_message("PumPum fait KABOOM"

San-Loon 13 ans
Mirko 12 ans