Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
580 B
0
Indexable
Never
c = (0, 0, 0) # Noir
m = (34, 139, 34) # Vert forêt
q = (255, 255, 0) # Jaune
t = (255, 140, 0) # Orange foncé
y = (255,145,154)# Rose foncé
x = (68,0,207)

rvb = sense.color # obtenir la couleur du capteur
c = (rvb.red, rvb.green, rvb.blue)
image = [
  c, c, y, y, y, y, c, c,
  c, y, y, t, t, y, y, c,
  y, y, t, q, q, t, y, y,
  c, y, y, t, t, y, y, c,
  c, c, y, y, y, y, c, c,
  m, c, c, m, m, c, c, m,
  c, m, m, m, m, m, m, c,
  c, c, c, m, m, c, c, c]

sense.set_pixels(image)
sleep(3)
sense.show_message("NASA is the best ",text_colour=t)

carlonoa
carlota
12
noabe
12