Untitled
unknown
plain_text
2 years ago
514 B
0
Indexable
Never
c = (0, 0, 0) # Noir m = (34, 139, 34) # Vert forêt q = (255, 255, 0) # Jaune v = (255, 0, 0) # Rouge rvb = sense.color # obtenir la couleur du capteur c = (rvb.red, rvb.green, rvb.blue) # utiliser la couleur détectée image = [ c, c, c, c, c, c, c, m, c, m, m, m, m, m, m, m, c, m, c, c, c, c, c, c, c, m, m, m, m, m, c, c, c, c, c, c, c, m, c, c, q, m, q, m, m, m, c, c, m, m, m, c, c, c, c, c, v, c, c, c, c, c, c, c] sense.set_pixels(image) sleep(5) sense.show_message("Do You See My",text_colour=q) naam 11