Untitled

 avatar
unknown
plain_text
2 years ago
609 B
3
Indexable

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)
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(3) 
sense.show_message ("Autodestruction dans 54321 KABOOM!", text_colour=t)

Lenaic ,13 ans / Thomas ,13 ans
Editor is loading...