This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import * | |
import ion | |
while True: | |
if ion.keydown(ion.KEY_OK): | |
print("La touche OK est pressée !") | |
if ion.keydown(ion.KEY_BACK): | |
print("Retour en arrière !") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import * | |
import kandinsky as kd | |
def init_color(): | |
black = (0, 0, 0) | |
white = (255, 255, 255) | |
red = (255, 0, 0) | |
orange = (255, 127, 0) | |
yellow = (255, 255, 0) |