-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.blocks
1 lines (1 loc) · 4.08 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="-?)0UK=Azr5A34rB8*5*">y</variable></variables><block type="pxt-on-start" id="QC?by[J6]B3s+CGG[D8F" x="0" y="0"><statement name="HANDLER"><block type="typescript_statement" id="xun`FEe#0N/w,Me*Fw7B"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="let y = 0" numlines="1" declaredvars="y"></mutation><next><block type="typescript_statement" id="im+yT[KEr8MTDLwXxMK9"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="const app = new microcode.App();" numlines="1" declaredvars="app"></mutation><next><block type="typescript_statement" id="L+$bBP#B5hz;Tf%Ev]:?"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="const calc = (arg0: microcode.GraphableFunction) => {" line1=" app.popScene()" line2=" app.pushScene(new microcode.LiveDataViewer(app, [arg0]))" line3="}" numlines="4" declaredvars="calc"></mutation><next><block type="typescript_statement" id="JU#gzQ%$;;L4{[pHR2Vs"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="const gf = new microcode.GraphableFunction((x) => y)" numlines="1" declaredvars="gf"></mutation><next><block type="typescript_statement" id="q-Xx,.yS:[?7caoy.M8*"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="const w = new microcode.Window({" line1=" app," line2=" components: [" line3=" new microcode.GUIBox({" line4=" alignment: microcode.GUIComponentAlignment.TOP," line5=" xOffset: 0," line6=" yOffset: 0," line7=" xScaling: 0.5," line8=" yScaling: 0.3," line9=" title: "Hello"" line10=" })," line11=" // new microcode.GUIBox({" line12=" // alignment: microcode.GUIComponentAlignment.LEFT," line13=" // xScaling: 0.8," line14=" // yScaling: 0.8," line15=" // colour: 4" line16=" // })," line17=" new microcode.GUISlider({" line18=" alignment: microcode.GUIComponentAlignment.LEFT," line19=" xScaling: 0.8," line20=" yScaling: 0.8," line21=" colour: 4" line22=" })," line23=" new microcode.GUIGraph({" line24=" alignment: microcode.GUIComponentAlignment.RIGHT," line25=" graphableFns: [gf]," line26=" xOffset: -5," line27=" yOffset: 0," line28=" xScaling: 1," line29=" yScaling: 1," line30=" colour: 6" line31=" })," line32=" // new microcode.GUIBox({" line33=" // alignment: microcode.GUIComponentAlignment.BOT," line34=" // xOffset: 0," line35=" // yOffset: 0," line36=" // xScaling: 0.6," line37=" // yScaling: 0.3," line38=" // colour: 7" line39=" // })" line40=" ]" line41="});" numlines="42" declaredvars="w"></mutation><next><block type="typescript_statement" id="#Y.?nd%gGEcM+3D:,IN$"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="app.pushScene(w)" numlines="1"></mutation></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="device_button_event" id="pluQ|ymuf0C/_}FNB^)[" x="682" y="0"><field name="NAME">Button.B</field><statement name="HANDLER"><block type="variables_set" id="Bv_6C5VFh9JOcH*ND,/r"><field name="VAR" id="-?)0UK=Azr5A34rB8*5*">y</field><value name="VALUE"><shadow type="math_number" id=".vrVzs4L$p*B!GAKd(^Z"><field name="NUM">0</field></shadow><block type="math_op2" id="SPn.XGz~FxY,ZyG2S0E7"><field name="op">min</field><value name="x"><block type="math_arithmetic" id="?lbeqD:8A_0GFp?6{|N8"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="Bhp8R0IkNFb7qe1V-Uim"><field name="NUM">0</field></shadow><block type="variables_get" id="]e|,9bX1q_Craf`jH7c6"><field name="VAR" id="-?)0UK=Azr5A34rB8*5*">y</field></block></value><value name="B"><shadow type="math_number" id="xj4w`?^@]#+x$42S14b0"><field name="NUM">10</field></shadow></value></block></value><value name="y"><shadow type="math_number" id="c*:|p,!-d-I6|5r)nQYh"><field name="NUM">100</field></shadow></value></block></value></block></statement></block></xml>