<snapdata remixID="11042447"><project name="U2L12-brickwall - mac" app="Snap! 6, https://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAEe0lEQVR4nO3bz0vkdRzH8a9/Q8GCfJdwD12CYDvazYR+QHUoiA0vHT2EB2HrVDKLzUEhFpQU88dJBPUQgoIiomJ8T/P14ISOEJbrtqKIrm3mDM2rgzuzTpPpbupr0OcDPszB70e/3y9PmJm3M4EAo8B9ArjeCBBW/xpgJpPR2NiYdU1MTGhzc/Oy7wcuWVmAAwMDymQyF7K+uFOv799/6dS189OPxT3t7e2O+4JLUhLg8vKy0un0ha1fPq/W/t2bZ1rH9+HqKglwaGhIcRwrjmP19vZqZWVFVVVVSiaTCoJAqVRKYRgqDEO1trYqCALV1taqtrZWTU1N6uvrUxzHCsNQNTU1xWMKv/N4gPknO9q/e1N//vC1sgv9ZQEW9sRxrP39fdf9wQUrCXB0dFRRFCmKInV1dam5uVmS1NbWpqWlJfX09GhkZESpVErDw8NKp9Pa2dlRS0uLampq1N3drfb2do2OjpYdE0VRSYCS9NfWz8ou9OuP7z4uC7BwHlEU6eDg4PLvDC5FSYB7e3uam5s7cc3OzioIAm1sbPzncSet53kKPr4PV1fZm5Cenh5NT09fyNre3pby+VPX2tqapqenNTU1pcXFRcd9wSWxjGFmZmaUz+dPXbj6zmUMs729rXvvhGcasezt7RX37e7uOq4ZFeRcxjCbjx6d+bXd7xuZ4j5e3+HEMUwqlVIQBArDUB0dHQqCQMlkUmEYqqqqSkFwtDWOY/328GExsFx68ul45StlF/qfPvY9i/DBSsmI5fDw0HLhqAwnjmGiKNLg4KBGRkbU0NCgxsZGJRIJpdNpzc/Pq66uTo2NjYqiSA/W14uBFUYqR+OVj4qPhZ8/Xl8u+Ru5XM517agAzzWGOXG8srZ25qfgx78uF/e1tbW5rhsV4tzGMLlc9kwjlsLxnZ2djutFhbGNYQCJMQzMGMPA6n+NYXK5XNkYpvBJl+xCn6Sj/2aURMgYBse88BgmkUgUjzs+hims7EKf8k92JOVL3wUzhsExjGFgxRgGVid+K+4sn1Z50QUU8LVMWBEgrAgQVgQIKwKEFQHCigBhRYCwIkBYESCsCBBWBAgrAoQVAcKKAGFVcQGurq7ymcFrpOIClKQ7732o+9X1+vLVt/RNaytBXmEVGaAkfXbjtu5X15esT15+TZOTkwR5hVRsgJLKAiysb195W+++8ab79HAOKjbAf0b3wa3b2tracp8WzllFBnjvVr0+vfG6xsfH3aeCC1aRAeL6IEBYESCsCBBWBAgrAoQVAcKKAGFFgLAiQFgRIKwIEFYECCsChBUBwooAYUWAsCJAWBEgrAgQVgQIKwKEFQHCigBhRYCwIkBYESCsCBBWBAgrAoQVAcKKAGFFgLAiQFgRIKwIEFYECCsChBUBwooAYUWAsCJAWBEgrAgQVgQIKwKEFQHCigBhRYCwIkBYESCsCBBWBAgrAoQVAcKKAGFFgLAiQFgRIKwIEFYECCsChBUBwooAYUWAsCJAWBEgrAgQVgQIKwKEFQHCigBhRYCwIkBY/Q0HclTJBtD+RwAAAABJRU5ErkJggg==</thumbnail><stage name="Stage" width="480" height="360" costume="0" color="255,255,255,1" tempo="60" threadsafe="false" penlog="false" volume="100" pan="0" lines="flat" ternary="true" hyperops="true" codify="false" inheritance="false" sublistIDs="false" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAACtUlEQVR4nO3BMQEAAADCoPVPbQwfoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+Bo3+AAF/RMkcAAAAAElFTkSuQmCC</pentrails><costumes><list struct="atomic" id="2"></list></costumes><sounds><list struct="atomic" id="3"></list></sounds><variables></variables><blocks></blocks><scripts></scripts><sprites><sprite name="Sprite" idx="1" x="-100" y="50" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="0" color="145,26,68,1" pen="tip" id="8"><costumes><list struct="atomic" id="9"></list></costumes><sounds><list struct="atomic" id="10"></list></sounds><blocks></blocks><variables></variables><scripts><script x="20" y="20"><block s="gotoXY"><l>-100</l><l>50</l></block><block s="setHeading"><l>90</l></block><block s="clear"></block></script><script x="20" y="97.83333333333331"><custom-block s="draw row b %s"><l>6</l></custom-block></script><script x="20" y="136.83333333333331"><custom-block s="draw row a %s"><l>6</l></custom-block></script><script x="20" y="175.8333333333333"><custom-block s="draw brick wall | %s rows | %s bricks in a row"><l>3</l><l>1200</l></custom-block></script></scripts></sprite><watcher var="lengthwidth" style="normal" x="10" y="10" color="243,118,29"/><watcher var="startX" style="normal" x="10" y="31.000001999999995" color="243,118,29"/><watcher var="startY" style="normal" x="10" y="52.00000399999999" color="243,118,29"/></sprites></stage><hidden></hidden><headers></headers><code></code><blocks><block-definition s="set flag %&apos;which&apos; to %&apos;tf&apos;" type="command" category="sensing"><header></header><code></code><translations></translations><inputs><input type="%s" readonly="true"><options>Presentation mode&#xD;Retina display support&#xD;Long form input dialog&#xD;Plain prototype labels&#xD;Input sliders&#xD;Execute on slider change&#xD;Clicking sound&#xD;Turbo mode&#xD;Flat design&#xD;Keyboard editing&#xD;Table support&#xD;Table lines&#xD;Visible stepping&#xD;Thread safe scripts&#xD;Prefer smooth animations&#xD;Flat line ends&#xD;Codification support&#xD;Inheritance support</options></input><input type="%b"></input></inputs><script><block s="doRun"><block s="reportJSFunction"><list><l>which</l><l>tf</l></list><l>var   stage = this.parentThatIsA(StageMorph),&#xD;        ide = stage.parentThatIsA(IDE_Morph),&#xD;        world = stage.parentThatIsA(WorldMorph);&#xD;&#xD;if (tf != !!tf) return;&#xD;&#xD;try{&#xD;ide.savingPreferences = false;&#xD;&#xD;switch (which) {&#xD;    case &apos;Presentation mode&apos;:&#xD;        if (tf != ide.isAppMode) ide.toggleAppMode();&#xD;        break;&#xD;    case &apos;Retina display support&apos;:&#xD;        if (tf != isRetinaEnabled()) ide.toggleRetina();&#xD;        break;&#xD;    case &apos;Long form input dialog&apos;:&#xD;        if (tf != InputSlotDialogMorph.prototype.isLaunchingExpanded)&#xD;            ide.toggleLongFormInputDialog();&#xD;        break;&#xD;    case &apos;Plain prototype labels&apos;:&#xD;        if (tf != BlockLabelPlaceHolderMorph.prototype.plainLabel)&#xD;            ide.togglePlainPrototypeLabels();&#xD;        break;&#xD;    case &apos;Input sliders&apos;:&#xD;        MorphicPreferences.useSliderForInput = tf;&#xD;        break;&#xD;    case &apos;Execute on slider change&apos;:&#xD;        ArgMorph.prototype.executeOnSliderEdit = tf;&#xD;        break;&#xD;    case &apos;Clicking sound&apos;:&#xD;        if (tf != !!BlockMorph.prototype.snapSound)&#xD;            BlockMorph.prototype.toggleSnapSound();&#xD;        break;&#xD;    case &apos;Turbo mode&apos;:&#xD;        if (tf != stage.isFastTracked)&#xD;            ide.toggleFastTracking();&#xD;        break;&#xD;    case &apos;Flat design&apos;:&#xD;        if (tf == MorphicPreferences.isFlat) break;&#xD;        if (tf)&#xD;            ide.flatDesign();&#xD;        else&#xD;            ide.defaultDesign();&#xD;        break;&#xD;    case &apos;Keyboard editing&apos;:&#xD;            ScriptsMorph.prototype.enableKeyboard = tf;&#xD;        break;&#xD;    case &apos;Table support&apos;:&#xD;            List.prototype.enableTables = tf;&#xD;        break;&#xD;    case &apos;Table lines&apos;:&#xD;                TableMorph.prototype.highContrast = tf;&#xD;        break;&#xD;    case &apos;Visible stepping&apos;:&#xD;        if (tf != Process.prototype.enableSingleStepping)&#xD;            ide.toggleSingleStepping();&#xD;        break;&#xD;    case &apos;Thread safe scripts&apos;:&#xD;        stage.isThreadSafe = tf;&#xD;        break;&#xD;    case &apos;Prefer smooth animations&apos;:&#xD;        if (tf != (StageMorph.prototype.frameRate &gt; 0))&#xD;            ide.toggleVariableFrameRate();&#xD;        break;&#xD;    case &apos;Flat line ends&apos;:&#xD;        SpriteMorph.prototype.useFlatLineEnds = tf;&#xD;        break;&#xD;    case &apos;Codification support&apos;:&#xD;        if (tf != StageMorph.prototype.enableCodeMapping) {&#xD;            StageMorph.prototype.enableCodeMapping = tf;&#xD;            ide.currentSprite.blocksCache.variables = null;&#xD;            ide.currentSprite.paletteCache.variables = null;&#xD;            ide.refreshPalette();&#xD;        }&#xD;        break;&#xD;    case &apos;Inheritance support&apos;:&#xD;        if (tf != StageMorph.prototype.enableInheritance) {&#xD;            StageMorph.prototype.enableInheritance = tf;&#xD;            ide.currentSprite.blocksCache.variables = null;&#xD;            ide.currentSprite.paletteCache.variables = null;&#xD;            ide.refreshPalette();&#xD;        }&#xD;        break;&#xD;};&#xD;}&#xD;finally {&#xD;ide.savingPreferences = false;&#xD;};&#xD;</l></block><list><block var="which"/><block var="tf"/></list></block></script></block-definition><block-definition s="draw brick, length: %&apos;length&apos; width: %&apos;width&apos;" type="command" category="pen"><header></header><code></code><translations></translations><inputs><input type="%n"></input><input type="%n"></input></inputs><script><block s="setColor"><color>145,26,68,1</color></block><block s="doSetGlobalFlag"><l><option>flat line ends</option></l><block s="reportBoolean"><l><bool>true</bool></l></block></block><block s="setSize"><block var="width"/></block><block s="down"></block><block s="forward"><block var="length"/></block><block s="up"></block><block s="doSetVar"><l>lengthwidth</l><block s="reportSum"><block var="width"/><block var="length"/></block></block></script></block-definition><block-definition s="set flat line ends to %&apos;flag&apos;" type="command" category="pen"><header></header><code></code><translations></translations><inputs><input type="%b"></input></inputs><script><custom-block s="set flag %s to %b"><l>Flat line ends</l><block var="flag"/></custom-block></script></block-definition><block-definition s="draw row a %&apos;rows&apos;" type="command" category="pen"><header></header><code></code><translations></translations><inputs><input type="%s"></input></inputs><script><block s="doRepeat"><block var="rows"/><script><custom-block s="draw brick, length: %n width: %n"><l>30</l><l>10</l></custom-block><block s="forward"><l>10</l></block></script></block><block s="forward"><block s="reportProduct"><block s="reportProduct"><block var="lengthwidth"/><block var="rows"/></block><l>-1</l></block></block></script></block-definition><block-definition s="draw row b %&apos;bricks&apos;" type="command" category="pen"><header></header><code></code><translations></translations><inputs><input type="%s"></input></inputs><script><custom-block s="draw brick, length: %n width: %n"><l>10</l><l>10</l></custom-block><block s="forward"><l>10</l></block><block s="doRepeat"><block s="reportDifference"><block var="bricks"/><l>1</l></block><script><custom-block s="draw brick, length: %n width: %n"><l>30</l><l>10</l></custom-block><block s="forward"><l>10</l></block></script></block><custom-block s="draw brick, length: %n width: %n"><l>10</l><l>10</l></custom-block><block s="forward"><block s="reportSum"><block s="reportProduct"><block s="reportProduct"><block var="lengthwidth"/><block s="reportSum"><block var="bricks"/><block s="reportDifference"><block var="bricks"/><l>1</l></block></block></block><l>-1</l></block><l>-10</l></block></block></script></block-definition><block-definition s="draw brick wall | %&apos;rows&apos; rows | %&apos;bpr&apos; bricks in a row" type="command" category="pen"><header></header><code></code><translations></translations><inputs><input type="%s"></input><input type="%s"></input></inputs><script><block s="doRepeat"><block s="reportQuotient"><block var="rows"/><l>2</l></block><script><custom-block s="draw row a %s"><block var="bpr"/></custom-block><block s="turn"><l>90</l></block><block s="forward"><l>20</l></block><block s="turnLeft"><l>90</l></block><custom-block s="draw row b %s"><block var="bpr"/></custom-block><block s="turn"><l>90</l></block><block s="forward"><l>20</l></block><block s="turnLeft"><l>90</l></block></script></block></script></block-definition></blocks><variables><variable name="lengthwidth"><l>40</l></variable><variable name="startX"><l>-100</l></variable><variable name="startY"><l>-10</l></variable></variables></project><media name="U2L12-brickwall - mac" app="Snap! 6, https://snap.berkeley.edu" version="1"></media></snapdata>