Programme p5Visuel <xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="xd%AlIPg_Az[KMnA7bo6">monCanvas</variable> <variable type="" id="vB3%lhdJiv`7/tZ}Pa@=">x</variable> <variable type="" id="thD3a;6li((-L.4CS}2b">x1</variable> <variable type="" id="*[rk6rL0@3qg}_USPgYf">y1</variable> <variable type="" id="6lHVzAtXGeXlENiJShiP">x2</variable> <variable type="" id="aA?zb}hEE;G;Vr?[Ect+">y2</variable> <variable type="" id="P*?7P]xSZ!fhyajwn9%O">x3</variable> <variable type="" id="Pe{CkDKwE$RU^m-^F+rS">y3</variable> <variable type="" id="HDbfLuyUsk^6!.y2uN+w">n</variable> <variable type="" id="s2(3%}S|L473-:lJm,nI">a1</variable> <variable type="" id="lqQHQl@Tv1Q_rkStHP/i">a2</variable> <variable type="" id="caegEh`U/SO?GmFR#K/Y">a3</variable> <variable type="" id="!R-tQT=W+-;5ao6g)f2+">b1</variable> <variable type="" id="#0!WgViXVfn?BZ8d24IR">b2</variable> <variable type="" id="%wRh(=LxT;lnf{Y9j2nE">b3</variable> <variable type="" id="_2O6OOn(V_iUmZQU+Cr[">niveau</variable> <variable type="" id="5/B)IP?=S{m%+1C3UQaf">glissiere</variable> <variable type="" id=":n)Pt}Prxu3ilidu[D#^">info</variable> </variables> <block type="procedures_defnoreturn" id="!un)A#F~hv4Bh#va5Q~n" x="-117" y="18"> <field name="NAME">actions initiales</field> <comment pinned="false" h="80" w="160">Fonction exécutée une fois, au départ</comment> <statement name="STACK"> <block type="objetsWeb_element" id="=ho%3.wAi?w5zXFm@.%+"> <value name="TYPE"> <shadow type="text" id="bTwM)x#F}@[;#9g8hW5z"> <field name="TEXT">h1</field> </shadow> </value> <value name="TEXTE"> <shadow type="text" id="CS.a,s;-5fH.jwW:0j~|"> <field name="TEXT">Triangle de Sierpinski</field> </shadow> </value> <next> <block type="objetsWeb_paragraphe" id="~q;u:r^BwZT5?9-$^zw*"> <value name="TEXTE"> <shadow type="text" id="I7AOxNpJez=t999a!%K;"> <field name="TEXT">Déterminer le niveau via la glissière ci-dessous</field> </shadow> </value> <next> <block type="objetsWeb_glissiere" id="X:Nf.Q#mkNV!Br5bzF_e"> <value name="NOM_VAR"> <block type="variables_get" id="QGOxHw#x0:*x3rN%m!e{"> <field name="VAR" id="5/B)IP?=S{m%+1C3UQaf" variabletype="">glissiere</field> </block> </value> <value name="MIN"> <shadow type="math_number" id="V+tK3Y*H$(*.J.IgZ!N]"> <field name="NUM">0</field> </shadow> </value> <value name="MAX"> <shadow type="math_number" id="M$rN26gI)1Zp5~;5?;^R"> <field name="NUM">7</field> </shadow> </value> <value name="VALEUR"> <shadow type="math_number" id="a|X6635.G1VOsK9Vx~bp"> <field name="NUM">0</field> </shadow> </value> <value name="PAS"> <shadow type="math_number" id="O;2UK|ZG_T9{?B|EhgI("> <field name="NUM">1</field> </shadow> </value> <next> <block type="objetsWeb_element" id="T,h^s_Dk`gYzdzoJ;SOD"> <value name="NOM_VAR"> <block type="variables_get" id="l76r9p5]UY27fTG*OVd9"> <field name="VAR" id=":n)Pt}Prxu3ilidu[D#^" variabletype="">info</field> </block> </value> <value name="TYPE"> <shadow type="text" id="ezIM9(yJZ{|De%*4D;QS"> <field name="TEXT">p</field> </shadow> </value> <value name="TEXTE"> <shadow type="text" id="iX+QGmz^=tJ7-fK~GP9X"> <field name="TEXT">Valeur</field> </shadow> </value> <next> <block type="p5_js_creerCanvas" id="z_M^[XBEHPNGXy;9Ijjm"> <value name="HORIZ"> <shadow type="math_number" id="|I7pCZqsidBX1*m7]sd_"> <field name="NUM">1000</field> </shadow> </value> <value name="VERT"> <shadow type="math_number" id="d,7`oQ#]jJsGEuTE2kwJ"> <field name="NUM">1000</field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> <block type="procedures_defnoreturn" id="]#@DEQ{!J{)$r77hmZOz" x="642" y="184"> <mutation> <arg name="n"></arg> <arg name="x1"></arg> <arg name="y1"></arg> <arg name="x2"></arg> <arg name="y2"></arg> <arg name="x3"></arg> <arg name="y3"></arg> </mutation> <field name="NAME">sierpinski</field> <comment pinned="false" h="80" w="160">Trace le triangle de Sierpinski</comment> <statement name="STACK"> <block type="programmation_varLocale" id="yCQfZ02o@3b-Vh{TiXC+"> <value name="VARIABLE"> <block type="variables_get" id="|m4t)W;n9FGLR37u5c}-"> <field name="VAR" id="s2(3%}S|L473-:lJm,nI" variabletype="">a1</field> </block> </value> <next> <block type="programmation_varLocale" id="hkRbo7KJ.jq;3M~P[w!a"> <value name="VARIABLE"> <block type="variables_get" id="I1JNWt)4k![_RK=pQ-UX"> <field name="VAR" id="lqQHQl@Tv1Q_rkStHP/i" variabletype="">a2</field> </block> </value> <next> <block type="programmation_varLocale" id="vwND8wz.Jvl`WIF`oeOa"> <value name="VARIABLE"> <block type="variables_get" id="WpA7|.iXsencA3aiq9WO"> <field name="VAR" id="caegEh`U/SO?GmFR#K/Y" variabletype="">a3</field> </block> </value> <next> <block type="programmation_varLocale" id="IYXhZ^D#MLAauu#dE(`R"> <value name="VARIABLE"> <block type="variables_get" id="M0$m9@/6J)]DcSh.eRKj"> <field name="VAR" id="!R-tQT=W+-;5ao6g)f2+" variabletype="">b1</field> </block> </value> <next> <block type="programmation_varLocale" id="2*/LN/s0s2!WrPi|i31z"> <value name="VARIABLE"> <block type="variables_get" id=",[6fh]FSh1bih;4-Ilir"> <field name="VAR" id="#0!WgViXVfn?BZ8d24IR" variabletype="">b2</field> </block> </value> <next> <block type="programmation_varLocale" id="MV,*/KF^|wH#~R3fKEzG"> <value name="VARIABLE"> <block type="variables_get" id="4|BcGzicLFf+2WZvn68m"> <field name="VAR" id="%wRh(=LxT;lnf{Y9j2nE" variabletype="">b3</field> </block> </value> <next> <block type="variables_set" id="PbE1nFu%5)/bcn6W-)o9"> <field name="VAR" id="s2(3%}S|L473-:lJm,nI" variabletype="">a1</field> <value name="VALUE"> <block type="math_arithmetic" id="VEXAZ_C`6LerY.;*1!TS"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="X||)a996DaP|hounYo+S"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="*HKw)CFUJp|}c61gM~=%"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="aCb)Tw#5g$tx?Q{!rT{F"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="pR!TtoK!!iw~u-).jXS5"> <field name="VAR" id="thD3a;6li((-L.4CS}2b" variabletype="">x1</field> </block> </value> <value name="B"> <shadow type="math_number" id=":mwf5jAGb.p]!`7~x9!5"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="EAng.uGM;%dv2Ut8EpTl"> <field name="VAR" id="P*?7P]xSZ!fhyajwn9%O" variabletype="">x3</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="Op6$oJ{+2XqYNa*ecN]."> <field name="NUM">2</field> </shadow> </value> </block> </value> <next> <block type="variables_set" id="OYAH$(R/,640RWS8#t!)"> <field name="VAR" id="!R-tQT=W+-;5ao6g)f2+" variabletype="">b1</field> <value name="VALUE"> <block type="math_arithmetic" id="^^C5hhdkj]x*xowK`Wy^"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="X||)a996DaP|hounYo+S"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="Ru4+`WbF,:bX5!!mAHV9"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="aCb)Tw#5g$tx?Q{!rT{F"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="X{6@VF{{mhma|,ia[zy9"> <field name="VAR" id="*[rk6rL0@3qg}_USPgYf" variabletype="">y1</field> </block> </value> <value name="B"> <shadow type="math_number" id=":mwf5jAGb.p]!`7~x9!5"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="A0}+{bi{0UD`w=UY98/_"> <field name="VAR" id="Pe{CkDKwE$RU^m-^F+rS" variabletype="">y3</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="m!LRbl:Y1z}o/h{vy*,["> <field name="NUM">2</field> </shadow> </value> </block> </value> <next> <block type="variables_set" id="~p]a{WD%NQiV+Z?cxJ+s"> <field name="VAR" id="lqQHQl@Tv1Q_rkStHP/i" variabletype="">a2</field> <value name="VALUE"> <block type="math_arithmetic" id="S19V10Yt:u]U/vG]DlHV"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="X||)a996DaP|hounYo+S"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="Q0k1wc^Y*CF_vzS~Ke6="> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="aCb)Tw#5g$tx?Q{!rT{F"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="(nu]$frC}S#DL94Q1Urp"> <field name="VAR" id="6lHVzAtXGeXlENiJShiP" variabletype="">x2</field> </block> </value> <value name="B"> <shadow type="math_number" id=":mwf5jAGb.p]!`7~x9!5"> <field name="NUM">1</field> </shadow> <block type="variables_get" id=")_27W7MP.i(xH2qB(x#t"> <field name="VAR" id="P*?7P]xSZ!fhyajwn9%O" variabletype="">x3</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="xQz(TSe=NNa,87dS`7KB"> <field name="NUM">2</field> </shadow> </value> </block> </value> <next> <block type="variables_set" id="z7^-0j^!n$_9@T6POm[g"> <field name="VAR" id="#0!WgViXVfn?BZ8d24IR" variabletype="">b2</field> <value name="VALUE"> <block type="math_arithmetic" id="WhM-A-[M12?SvVy6o0iJ"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="X||)a996DaP|hounYo+S"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="Du_yt}TdHdTyy)]K!5RQ"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="aCb)Tw#5g$tx?Q{!rT{F"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="1#-#:M5nO4iM=4rQ@@UR"> <field name="VAR" id="aA?zb}hEE;G;Vr?[Ect+" variabletype="">y2</field> </block> </value> <value name="B"> <shadow type="math_number" id=":mwf5jAGb.p]!`7~x9!5"> <field name="NUM">1</field> </shadow> <block type="variables_get" id=")yU2Fn]3][Mc9L)Pf{1z"> <field name="VAR" id="Pe{CkDKwE$RU^m-^F+rS" variabletype="">y3</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="O48/$)my7;_E{JRq;.YG"> <field name="NUM">2</field> </shadow> </value> </block> </value> <next> <block type="variables_set" id="r7{`q2wx/p:wKL,}qHg_"> <field name="VAR" id="caegEh`U/SO?GmFR#K/Y" variabletype="">a3</field> <value name="VALUE"> <block type="math_arithmetic" id="1*M4.v0~K=|1E$HCZn-;"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="X||)a996DaP|hounYo+S"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="Vi]Gtc1[+%7!Cd1(R$X8"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="aCb)Tw#5g$tx?Q{!rT{F"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="nGTM0V~b@:%2[127bu{m"> <field name="VAR" id="thD3a;6li((-L.4CS}2b" variabletype="">x1</field> </block> </value> <value name="B"> <shadow type="math_number" id=":mwf5jAGb.p]!`7~x9!5"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="[?nZes)BLy,}bQh(!8i,"> <field name="VAR" id="6lHVzAtXGeXlENiJShiP" variabletype="">x2</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="^:@UBT)z@Y43`rkx~T%="> <field name="NUM">2</field> </shadow> </value> </block> </value> <next> <block type="variables_set" id="(t1CYs?3?PG?_u.J::m)"> <field name="VAR" id="%wRh(=LxT;lnf{Y9j2nE" variabletype="">b3</field> <value name="VALUE"> <block type="math_arithmetic" id="FZ@~G4z`JekUu6,b/t^!"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="X||)a996DaP|hounYo+S"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="svkjGQ?Tk1,5,5_oXc:,"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="aCb)Tw#5g$tx?Q{!rT{F"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="HDYR.Y-~7#kr`@eKb|5s"> <field name="VAR" id="*[rk6rL0@3qg}_USPgYf" variabletype="">y1</field> </block> </value> <value name="B"> <shadow type="math_number" id=":mwf5jAGb.p]!`7~x9!5"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="EUfadmG(Zra2pLNKY?1Z"> <field name="VAR" id="aA?zb}hEE;G;Vr?[Ect+" variabletype="">y2</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="3Kqw[i[F0$G`CCEM^}/s"> <field name="NUM">2</field> </shadow> </value> </block> </value> <next> <block type="controls_if" id="v%A-OIiE%C!7$Y?mOJUF"> <value name="IF0"> <block type="logic_compare" id="zt[y87OW3Y9Vd]*!vbo)"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="biIeaCyPw{j!j3c1LENA"> <field name="VAR" id="HDbfLuyUsk^6!.y2uN+w" variabletype="">n</field> </block> </value> <value name="B"> <block type="math_number" id="Pt(sfkk~ouH)BMI2w@``"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="procedures_callnoreturn" id="b}{?{];CK)EF@zChRtoW"> <mutation name="triangle"> <arg name="x1"></arg> <arg name="y1"></arg> <arg name="x2"></arg> <arg name="y2"></arg> <arg name="x3"></arg> <arg name="y3"></arg> </mutation> <value name="ARG0"> <block type="variables_get" id="e[P%KPoO.]2uOiDs!bc="> <field name="VAR" id="s2(3%}S|L473-:lJm,nI" variabletype="">a1</field> </block> </value> <value name="ARG1"> <block type="variables_get" id="R@1`h%6sEu_@Uv`ek(gS"> <field name="VAR" id="!R-tQT=W+-;5ao6g)f2+" variabletype="">b1</field> </block> </value> <value name="ARG2"> <block type="variables_get" id="VCTiP-M%7d{r!2:oM_U^"> <field name="VAR" id="lqQHQl@Tv1Q_rkStHP/i" variabletype="">a2</field> </block> </value> <value name="ARG3"> <block type="variables_get" id="m@ON(J~_WdC(snn3Rli}"> <field name="VAR" id="#0!WgViXVfn?BZ8d24IR" variabletype="">b2</field> </block> </value> <value name="ARG4"> <block type="variables_get" id="_#*p[m)%Tf1Fn/MBEJgs"> <field name="VAR" id="caegEh`U/SO?GmFR#K/Y" variabletype="">a3</field> </block> </value> <value name="ARG5"> <block type="variables_get" id="4TaHzvsD`UjT,|yM|Ff3"> <field name="VAR" id="%wRh(=LxT;lnf{Y9j2nE" variabletype="">b3</field> </block> </value> <next> <block type="procedures_callnoreturn" id="_Ec8S^}MG!oo,t7Q*ur%"> <mutation name="sierpinski"> <arg name="n"></arg> <arg name="x1"></arg> <arg name="y1"></arg> <arg name="x2"></arg> <arg name="y2"></arg> <arg name="x3"></arg> <arg name="y3"></arg> </mutation> <value name="ARG0"> <block type="math_arithmetic" id="4v!Ktzs~TlJ#}pm5clEX"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="~GnA#~%VS.u:cg.H@fg%"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="!2.O=ZoCe(kPVot4h1W9"> <field name="VAR" id="HDbfLuyUsk^6!.y2uN+w" variabletype="">n</field> </block> </value> <value name="B"> <shadow type="math_number" id="3mkljGPb]vy)]U}=q7a_"> <field name="NUM">1</field> </shadow> </value> </block> </value> <value name="ARG1"> <block type="variables_get" id="Iwh^yTHU^5P@J*yv,NC)"> <field name="VAR" id="s2(3%}S|L473-:lJm,nI" variabletype="">a1</field> </block> </value> <value name="ARG2"> <block type="variables_get" id="Qv6uE!/vgcz8V^V1WWYO"> <field name="VAR" id="!R-tQT=W+-;5ao6g)f2+" variabletype="">b1</field> </block> </value> <value name="ARG3"> <block type="variables_get" id="zFw}:2Q_k|~/R8kF_,*X"> <field name="VAR" id="lqQHQl@Tv1Q_rkStHP/i" variabletype="">a2</field> </block> </value> <value name="ARG4"> <block type="variables_get" id="}E$Mg~6S=YuStQM$t/$]"> <field name="VAR" id="#0!WgViXVfn?BZ8d24IR" variabletype="">b2</field> </block> </value> <value name="ARG5"> <block type="variables_get" id="s$`}Z=q27vovcQ7!Wd+y"> <field name="VAR" id="P*?7P]xSZ!fhyajwn9%O" variabletype="">x3</field> </block> </value> <value name="ARG6"> <block type="variables_get" id="b:oLns-0,gx8vu6;$r--"> <field name="VAR" id="Pe{CkDKwE$RU^m-^F+rS" variabletype="">y3</field> </block> </value> <next> <block type="procedures_callnoreturn" id="m@Y`SU}ofJ0{HO,2V]5I"> <mutation name="sierpinski"> <arg name="n"></arg> <arg name="x1"></arg> <arg name="y1"></arg> <arg name="x2"></arg> <arg name="y2"></arg> <arg name="x3"></arg> <arg name="y3"></arg> </mutation> <value name="ARG0"> <block type="math_arithmetic" id="^GA_z:*C8XnN,B^{6qTV"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="~GnA#~%VS.u:cg.H@fg%"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="^p!HS-Kb^=(?A5-J0ZZa"> <field name="VAR" id="HDbfLuyUsk^6!.y2uN+w" variabletype="">n</field> </block> </value> <value name="B"> <shadow type="math_number" id="dWRuU`:mQnO)%8WQ0BAq"> <field name="NUM">1</field> </shadow> </value> </block> </value> <value name="ARG1"> <block type="variables_get" id="ZM0Ilwd[Dpkf[=7SJ_g0"> <field name="VAR" id="thD3a;6li((-L.4CS}2b" variabletype="">x1</field> </block> </value> <value name="ARG2"> <block type="variables_get" id="gVZnZuY-2vb|H}HvyN_1"> <field name="VAR" id="*[rk6rL0@3qg}_USPgYf" variabletype="">y1</field> </block> </value> <value name="ARG3"> <block type="variables_get" id="NL%-H9-;:FwTE@jd9Nd0"> <field name="VAR" id="caegEh`U/SO?GmFR#K/Y" variabletype="">a3</field> </block> </value> <value name="ARG4"> <block type="variables_get" id=":=,Lrgv)axLd_V?~XICC"> <field name="VAR" id="%wRh(=LxT;lnf{Y9j2nE" variabletype="">b3</field> </block> </value> <value name="ARG5"> <block type="variables_get" id="[yIXpRjXP0jKrE,O$#E,"> <field name="VAR" id="s2(3%}S|L473-:lJm,nI" variabletype="">a1</field> </block> </value> <value name="ARG6"> <block type="variables_get" id="%OCh5QfZ(H)A,*mh$O8%"> <field name="VAR" id="!R-tQT=W+-;5ao6g)f2+" variabletype="">b1</field> </block> </value> <next> <block type="procedures_callnoreturn" id="%}x27-FP6y5@t0N:m%V2"> <mutation name="sierpinski"> <arg name="n"></arg> <arg name="x1"></arg> <arg name="y1"></arg> <arg name="x2"></arg> <arg name="y2"></arg> <arg name="x3"></arg> <arg name="y3"></arg> </mutation> <value name="ARG0"> <block type="math_arithmetic" id="{td^$D#Z$)xu/u,{WHWN"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="~GnA#~%VS.u:cg.H@fg%"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="XhE~f|:Xyy*7N@.6{3t2"> <field name="VAR" id="HDbfLuyUsk^6!.y2uN+w" variabletype="">n</field> </block> </value> <value name="B"> <shadow type="math_number" id="oIG2lT:4REm.ev#-ag3;"> <field name="NUM">1</field> </shadow> </value> </block> </value> <value name="ARG1"> <block type="variables_get" id="pi6PHlx0shC)CX1,?qJi"> <field name="VAR" id="caegEh`U/SO?GmFR#K/Y" variabletype="">a3</field> </block> </value> <value name="ARG2"> <block type="variables_get" id="a1T;uexqb;h%=wT}CSV="> <field name="VAR" id="%wRh(=LxT;lnf{Y9j2nE" variabletype="">b3</field> </block> </value> <value name="ARG3"> <block type="variables_get" id="+5wEt1SooRRWa%@}QD9-"> <field name="VAR" id="6lHVzAtXGeXlENiJShiP" variabletype="">x2</field> </block> </value> <value name="ARG4"> <block type="variables_get" id="OqWHtef=^;5xrT~0*iy4"> <field name="VAR" id="aA?zb}hEE;G;Vr?[Ect+" variabletype="">y2</field> </block> </value> <value name="ARG5"> <block type="variables_get" id="YnA0|6A($_0}m*%`(@XK"> <field name="VAR" id="lqQHQl@Tv1Q_rkStHP/i" variabletype="">a2</field> </block> </value> <value name="ARG6"> <block type="variables_get" id="/I_37Q;;v=+2Om(=`.Av"> <field name="VAR" id="#0!WgViXVfn?BZ8d24IR" variabletype="">b2</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> <block type="procedures_defnoreturn" id="sNnHnB2XE9|fCS-xN%`L" x="-115" y="310"> <field name="NAME">actions en boucle</field> <comment pinned="false" h="80" w="160">Fonction exécutée périodiquement</comment> <statement name="STACK"> <block type="couleurs_fond_C" id="Qg5TFWy7/aXUiOOZ~9a$"> <value name="C"> <block type="couleurs_couleur" id="[aO3k/0`I;79{Decsw5?"> <value name="R"> <shadow type="math_number" id="@MZD1fd;G4Bik[nXri]j"> <field name="NUM">230</field> </shadow> </value> <value name="V"> <shadow type="math_number" id="5a+;,G6c;tqDC#|=VqT7"> <field name="NUM">230</field> </shadow> </value> <value name="B"> <shadow type="math_number" id="rKkz0_)(DI[t#Z6~qHPW"> <field name="NUM">230</field> </shadow> </value> <value name="A"> <shadow type="math_number" id="w[PM9ym_6/d_m{}*/b|="> <field name="NUM">255</field> </shadow> </value> </block> </value> <next> <block type="procedures_callnoreturn" id="dfDnc[7(=`Az4?pSzrN6"> <mutation name="tracerFigure"> <arg name="niveau"></arg> </mutation> <value name="ARG0"> <block type="proprietes_valeur" id="6_=}vb!ZF$h;]ZQ=*ep!"> <value name="OBJ"> <block type="variables_get" id="45phL+lud0le]FaB3*Ak"> <field name="VAR" id="5/B)IP?=S{m%+1C3UQaf" variabletype="">glissiere</field> </block> </value> </block> </value> <next> <block type="proprietes_fixeContenu" id="g$6;o-K5o.@bU;}tiBid"> <value name="OBJET"> <block type="variables_get" id="#*mVlmcq6$Pj`/js)6#j"> <field name="VAR" id=":n)Pt}Prxu3ilidu[D#^" variabletype="">info</field> </block> </value> <value name="TEXTE"> <shadow type="text" id="v`e%y[*{]{6;JAUhAVq["> <field name="TEXT"></field> </shadow> <block type="text_join" id="YF9ITk?yuKzEF2([MG0Y"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="j,}%Hs;/6sCR;QGvnkq@"> <field name="TEXT">Valeur : </field> </block> </value> <value name="ADD1"> <block type="proprietes_valeur" id="HTU+Tyd^67?-a-cY008B"> <value name="OBJ"> <block type="variables_get" id="m*J@*yO,avs)O1F{-FB_"> <field name="VAR" id="5/B)IP?=S{m%+1C3UQaf" variabletype="">glissiere</field> </block> </value> </block> </value> </block> </value> </block> </next> </block> </next> </block> </statement> </block> <block type="procedures_defnoreturn" id=":G3rC#495-QSHKcuQ92?" x="-119" y="603"> <mutation> <arg name="niveau"></arg> </mutation> <field name="NAME">tracerFigure</field> <comment pinned="false" h="80" w="160">Fonction appelée périodiquement, par la fonction draw</comment> <statement name="STACK"> <block type="procedures_callnoreturn" id="W]!A@zS(vzDD{gc0SH3N"> <mutation name="triangle"> <arg name="x1"></arg> <arg name="y1"></arg> <arg name="x2"></arg> <arg name="y2"></arg> <arg name="x3"></arg> <arg name="y3"></arg> </mutation> <value name="ARG0"> <block type="math_number" id="-}knqK$/1cZh~%1GjdUX"> <field name="NUM">52</field> </block> </value> <value name="ARG1"> <block type="math_number" id="YAgfWlsIYlm3L7h^)y48"> <field name="NUM">900</field> </block> </value> <value name="ARG2"> <block type="math_number" id=";d#.X@0$De$K,(^ZP;5:"> <field name="NUM">948</field> </block> </value> <value name="ARG3"> <block type="math_number" id="}q`M];0fGBdyYh[cU.f4"> <field name="NUM">900</field> </block> </value> <value name="ARG4"> <block type="math_number" id="yg^PXvT+fD5coM_?XuwK"> <field name="NUM">500</field> </block> </value> <value name="ARG5"> <block type="math_number" id="V~}6RK5hJ;r2EhB[v__$"> <field name="NUM">124</field> </block> </value> <next> <block type="procedures_callnoreturn" id="uH8[Y!Nvj2?(`)[e-YN*"> <mutation name="sierpinski"> <arg name="n"></arg> <arg name="x1"></arg> <arg name="y1"></arg> <arg name="x2"></arg> <arg name="y2"></arg> <arg name="x3"></arg> <arg name="y3"></arg> </mutation> <value name="ARG0"> <block type="variables_get" id="|}jXrN8n~sX@tOq,(:]Z"> <field name="VAR" id="_2O6OOn(V_iUmZQU+Cr[" variabletype="">niveau</field> </block> </value> <value name="ARG1"> <block type="math_number" id="bppzT]poa/n9V0wEAEM="> <field name="NUM">52</field> </block> </value> <value name="ARG2"> <block type="math_number" id="xxkaWVWHzx4)=0Gca(Wi"> <field name="NUM">900</field> </block> </value> <value name="ARG3"> <block type="math_number" id="}=s9a3U4)#FD3[ByAh}y"> <field name="NUM">948</field> </block> </value> <value name="ARG4"> <block type="math_number" id="k4AskBz-3G-24UUTL@VD"> <field name="NUM">900</field> </block> </value> <value name="ARG5"> <block type="math_number" id="!rBW#mVM2u!wpxB4@}6N"> <field name="NUM">500</field> </block> </value> <value name="ARG6"> <block type="math_number" id="mU_aiZ`EZM#F~1VGPt?o"> <field name="NUM">124</field> </block> </value> </block> </next> </block> </statement> </block> <block type="procedures_defnoreturn" id="6K,XiPvH4A5$8=|/l[/U" x="-124" y="1046"> <mutation> <arg name="x1"></arg> <arg name="y1"></arg> <arg name="x2"></arg> <arg name="y2"></arg> <arg name="x3"></arg> <arg name="y3"></arg> </mutation> <field name="NAME">triangle</field> <comment pinned="false" h="80" w="160">Trace un triangle</comment> <statement name="STACK"> <block type="tortue_sautePos" id="Hs:^Xca?F%2hG3sOS{v1"> <value name="X"> <shadow type="math_number" id="`?ppMIp!YMfF4OS35ge="> <field name="NUM">0</field> </shadow> <block type="variables_get" id="f%?FoSQgJ[Q]D@`Xqsxq"> <field name="VAR" id="thD3a;6li((-L.4CS}2b" variabletype="">x1</field> </block> </value> <value name="Y"> <shadow type="math_number" id="0EJiBFgtn#zH~rcp-r4q"> <field name="NUM">0</field> </shadow> <block type="variables_get" id="F`JxgQH%FzP!S3$R@Nw9"> <field name="VAR" id="*[rk6rL0@3qg}_USPgYf" variabletype="">y1</field> </block> </value> <next> <block type="tortue_fixePos" id="e^Bv|~%9d@XvaCoJ^M3["> <value name="X"> <shadow type="math_number" id="/lJ!Q_E{rv_+x7gMk@g8"> <field name="NUM">0</field> </shadow> <block type="variables_get" id=",*1(`:rrK%DZC31=LE}u"> <field name="VAR" id="6lHVzAtXGeXlENiJShiP" variabletype="">x2</field> </block> </value> <value name="Y"> <shadow type="math_number" id="F)S_OS1:}OxZionU-{0h"> <field name="NUM">0</field> </shadow> <block type="variables_get" id="za.)mtR+1|290aRK%6lT"> <field name="VAR" id="aA?zb}hEE;G;Vr?[Ect+" variabletype="">y2</field> </block> </value> <next> <block type="tortue_fixePos" id=";k$%Q!$Wo[9s^=TtJZlD"> <value name="X"> <shadow type="math_number" id="/lJ!Q_E{rv_+x7gMk@g8"> <field name="NUM">0</field> </shadow> <block type="variables_get" id="L2%}eOsB?tneHa8H)4a="> <field name="VAR" id="P*?7P]xSZ!fhyajwn9%O" variabletype="">x3</field> </block> </value> <value name="Y"> <shadow type="math_number" id="F)S_OS1:}OxZionU-{0h"> <field name="NUM">0</field> </shadow> <block type="variables_get" id="Cm=DXX2m{LA$EK;c[8lD"> <field name="VAR" id="Pe{CkDKwE$RU^m-^F+rS" variabletype="">y3</field> </block> </value> <next> <block type="tortue_fixePos" id="]{69(e~Kju;7qo,cUE4C"> <value name="X"> <shadow type="math_number" id="/lJ!Q_E{rv_+x7gMk@g8"> <field name="NUM">0</field> </shadow> <block type="variables_get" id="l=S;XF@G9JS1S.^Pp_?!"> <field name="VAR" id="thD3a;6li((-L.4CS}2b" variabletype="">x1</field> </block> </value> <value name="Y"> <shadow type="math_number" id="F)S_OS1:}OxZionU-{0h"> <field name="NUM">0</field> </shadow> <block type="variables_get" id="O6_|8Q$7_L1WNM^e05V|"> <field name="VAR" id="*[rk6rL0@3qg}_USPgYf" variabletype="">y1</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </xml>