rechercher.py

Created by caucaucybu

Created on March 09, 2023

443 Bytes

Pour trouver une couleur rvb entrez couleur() et réglez avec les touches 7, 9, 4, 6, 1, 3, 0 et *10. Quand vous avez la bonne couleur appuyez sur ok. Vous pouvez aussi entrer en argument de couleur() les nombres d’une couleur rvb pour l’affiner. Pour trouver une touche vous entrez touche() puis vous appuyez sur la touche recherchée et son code s’affichera.


n=s=x=0
from ion import *
from kandinsky import *
def touche():
  while 1:
    for i in range(53):
      if keydown(i):return i
def couleur(n=0,s=0,x=0):
  while not keydown(4):
    n+=keydown(32)-keydown(30)+keydown(50)-keydown(48);s+=keydown(38)-keydown(36)+keydown(50)-keydown(48);x+=keydown(44)-keydown(42)+keydown(50)-keydown(48)
    fill_rect(0,0,320,222,(n,s,x));draw_string(str((n,s,x)),0,0)
  return get_pixel(10,10)