Page 127 - Demo
P. 127

TI Python BootCamp CREATIEF MET FIGUREN
2.2. Mickey
Voor het tekenen van Mickey configureren we het scherm met de oorsprong in het midden: from ti_draw import *
dim=get_screen_dim() set_window(-dim[0]/2,dim[0]/2,-dim[1]/2,dim[1]/2)
set_color(255,0,0) fill_rect(-dim[0]/2,-dim[1]/2,318,212)
set_color(0,0,0) fill_circle(0,-10,60) fill_circle(-60,56,42) fill_circle(60,56,42)
set_color(255,255,255) fill_arc(-48,-76,96,66,0,360)
fill_circle(42,-34,18) fill_circle(-42,-34,18)
fill_arc(-42,-28,48,66,0,360) fill_arc(-6,-28,48,66,0,360)
set_color(0,0,0) draw_arc(-24,-22,19,36,0,360) draw_arc(6,-22,19,36,0,360)
fill_arc(-15,-37,30,15,0,360) draw_arc(-48,-58,96,96,210,120)
En tenslotte de pupillen van de ogen:
fill_circle(15,7.3,7) fill_circle(-14,7.3, 7)
Python GRAFISCH
         © 2020 T3 Nederland – T3 Vlaanderen 5
www.t3nederland.nl – www.t3vlaanderen.be



















































































   125   126   127   128   129