draw_numworks.py

Created by numworks

Created on April 10, 2020

790 Bytes

Utiliser les flèches de la calculatrice pour déplacer le texte.


import time
from kandinsky import *
from ion import *

def draw_numworks():
    bool=True
    x,y=120,100
    while bool:
        draw_string("NumWorks",x,y)
        if keydown(KEY_LEFT):
            x-=1
            if x<0:
              fill_rect(0,0,320,240,(255,255,255))
            x=x%320
        elif keydown(KEY_RIGHT):
            x+=1
            x=x%320
            #fill_rect(0,0,320,240,(255,255,255))
        elif keydown(KEY_UP):
            y-=1
            if y<0:
              fill_rect(0,0,320,240,(255,255,255))
            y=y%240
        elif keydown(KEY_DOWN):
            y+=1
            y=y%240
            #fill_rect(0,0,320,240,(255,255,255))
        elif keydown(KEY_BACK):
            bool=False
        time.sleep(0.005)
draw_numworks()

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.