Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
587 B
0
Indexable
Never
a = (255, 255, 255) # Blanc
c = (0, 0, 0) # Noir
e = (0, 0, 205) # Bleu moyen
q = (255, 255, 0) # Jaune
t = (255, 140, 0) # Orange foncé
w = (255, 192, 203) # Rose
rvb = sense.color # obtenir la couleur du capteur
c = (rvb.red, rvb.green, rvb.blue) # ("utiliser la couleur bleu")

image = [
  c, c, c, q, q, q, c, c,
  c, c, t, q, e, q, c, c,
  c, c, c, q, q, q, c, c,
  c, w, w, w, w, w, w, c,
  c, w, a, a, a, a, w, c,
  c, w, a, a, a, a, w, c,
  c, c, w, a, a, w, c, c,
  c, c, c, w, w, c, c, c]
sense.set_pixels(image)
sleep(5)
sense.show_message("hi")

sabrinav
sabrina
13
navid
12