Page 144 - Demo
P. 144

TI Python BootCamp VERDIEPING 4
We vervolgen het programma als volgt: use_buffer()
while get_key() != "center": ¨¨clear()
¨¨mickey() ¨¨xm,ym=get_mouse() ¨¨if xm == -1:
¨¨¨¨n=0
¨¨else: ¨¨¨¨n=xm*6/318-3 ¨¨if ym == -1: ¨¨¨¨m=0
¨¨else: ¨¨¨¨m=(212-ym)*22/212-11 ¨¨fill_circle(-14+n,-4+m,7) ¨¨fill_circle(16+n,-4+m,7) ¨¨paint_buffer()
¨¨mickey() ¨¨fill_circle(15,7.3,7) ¨¨fill_circle(-14,7.3, 7) ¨¨paint_buffer()
Python GRAFISCH
       © 2020 T3 Nederland – T3 Vlaanderen
6
www.t3nederland.nl – www.t3vlaanderen.be























































































   142   143   144   145   146