<snapdata remixID="8846672"><project name='U2L4-brickwall' app='Snap! 5.1, http://snap.berkeley.edu' version='1'>
  <notes></notes>
  <thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAAAXNSR0IArs4c6QAAAyNJREFUeAHt1zFqlAEUhdF/YukSgiBZhRvQPWQVbsQqhZV9cAPB1kJwHy5DMEYtQ2K4XLkgZ8qZee8xh4+Z5HR79zg8CIwEzkZ3nSXwW0CAQpgKCHDK77gANTAVEOCU33EBamAqIMApv+MC1MBUQIBTfscFqIGpgACn/I4LUANTAQFO+R0XoAamAgKc8jsuQA1MBQQ45XdcgBqYCghwyu+4ADUwFRDglN9xAWpgKiDAKb/jAtTAVECAU37HBaiBqYAAp/yOC1ADUwEBTvkdF6AGpgICnPI7LkANTAUEOOV3XIAamAoIcMrvuAA1MBUQ4JTfcQFqYCogwCm/4wLUwFRAgFN+xwWogamAAKf8jgtQA1MBAU75HRegBqYCApzyOy5ADUwFBDjld1yAGpgKCHDK77gANTAVEOCU33EBamAqIMApv+MC1MBUQIAP8L96fn5cX18/8KqnWwKn27tHa9n/tufqxZvj+PGH5+b7t+P915vj4uLif/uY088jwL/wX52/vveO22dnx5eXx/Hx86fjdDrde90TTxfwE/x0K+/8BwK+AR9B9RP8CE7pJQE+APnrn5C3H94dl5eXD7zD0w0BATYU7YgF/A0Y0xlsCAiwoWhHLCDAmM5gQ0CADUU7YgEBxnQGGwICbCjaEQsIMKYz2BAQYEPRjlhAgDGdwYaAABuKdsQCAozpDDYEBNhQtCMWEGBMZ7AhIMCGoh2xgABjOoMNAQE2FO2IBQQY0xlsCAiwoWhHLCDAmM5gQ0CADUU7YgEBxnQGGwICbCjaEQsIMKYz2BAQYEPRjlhAgDGdwYaAABuKdsQCAozpDDYEBNhQtCMWEGBMZ7AhIMCGoh2xgABjOoMNAQE2FO2IBQQY0xlsCAiwoWhHLCDAmM5gQ0CADUU7YgEBxnQGGwICbCjaEQsIMKYz2BAQYEPRjlhAgDGdwYaAABuKdsQCAozpDDYEBNhQtCMWEGBMZ7AhIMCGoh2xgABjOoMNAQE2FO2IBQQY0xlsCAiwoWhHLCDAmM5gQ0CADUU7YgEBxnQGGwICbCjaEQsIMKYz2BAQYEPRjljgJz6/MyavrliTAAAAAElFTkSuQmCC</thumbnail>
  <stage inheritance='false' id='1' volume='100' height='360' tempo='60' lines='flat' width='480' name='Stage' sublistIDs='false' threadsafe='false' codify='false' color='255,255,255,1' scheduled='false' pan='0' ternary='true' costume='0'>
    <pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAAAXNSR0IArs4c6QAAC99JREFUeAHt0DEBAAAAwqD1T20MH4hAYcCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDB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gwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBj4DAyN/gABHhb3AgAAAABJRU5ErkJggg==</pentrails>
    <costumes>
      <list struct='atomic' id='2'/>
    </costumes>
    <sounds>
      <list struct='atomic' id='3'/>
    </sounds>
    <variables/>
    <blocks/>
    <scripts/>
    <sprites>
      <sprite x='0' pen='tip' id='8' y='0' name='Sprite' idx='1' volume='100' rotation='1' scale='1' heading='90' draggable='true' color='145,26,68,1' pan='0' costume='0'>
        <costumes>
          <list struct='atomic' id='9'/>
        </costumes>
        <sounds>
          <list struct='atomic' id='10'/>
        </sounds>
        <blocks/>
        <variables/>
        <scripts>
          <script x='36' y='57'>
            <block s='clear'/>
            <block s='gotoXY'>
              <l>0</l>
              <l>0</l>
            </block>
          </script>
          <script x='175' y='536'>
            <custom-block s='draw brick wall %s %s'>
              <l>6</l>
              <l>7</l>
            </custom-block>
          </script>
          <script x='85' y='430'>
            <custom-block s='rowB %s'>
              <l>6</l>
            </custom-block>
          </script>
        </scripts>
      </sprite>
    </sprites>
  </stage>
  <hidden/>
  <headers/>
  <code/>
  <blocks>
    <block-definition s='set flag %&apos;which&apos; to %&apos;tf&apos;' category='sensing' type='command'>
      <header/>
      <code/>
      <translations/>
      <inputs>
        <input readonly='true' type='%s'>
          <options>Presentation modeRetina display supportLong form input dialogPlain prototype labelsInput slidersExecute on slider changeClicking soundTurbo modeFlat designKeyboard editingTable supportTable linesVisible steppingThread safe scriptsPrefer smooth animationsFlat line endsCodification supportInheritance support</options>
        </input>
        <input type='%b'/>
      </inputs>
      <script>
        <block s='doRun'>
          <block s='reportJSFunction'>
            <list>
              <l>which</l>
              <l>tf</l>
            </list>
            <l>var   stage = this.parentThatIsA(StageMorph),        ide = stage.parentThatIsA(IDE_Morph),        world = stage.parentThatIsA(WorldMorph);if (tf != !!tf) return;try{ide.savingPreferences = false;switch (which) {    case &apos;Presentation mode&apos;:        if (tf != ide.isAppMode) ide.toggleAppMode();        break;    case &apos;Retina display support&apos;:        if (tf != isRetinaEnabled()) ide.toggleRetina();        break;    case &apos;Long form input dialog&apos;:        if (tf != InputSlotDialogMorph.prototype.isLaunchingExpanded)            ide.toggleLongFormInputDialog();        break;    case &apos;Plain prototype labels&apos;:        if (tf != BlockLabelPlaceHolderMorph.prototype.plainLabel)            ide.togglePlainPrototypeLabels();        break;    case &apos;Input sliders&apos;:        MorphicPreferences.useSliderForInput = tf;        break;    case &apos;Execute on slider change&apos;:        ArgMorph.prototype.executeOnSliderEdit = tf;        break;    case &apos;Clicking sound&apos;:        if (tf != !!BlockMorph.prototype.snapSound)            BlockMorph.prototype.toggleSnapSound();        break;    case &apos;Turbo mode&apos;:        if (tf != stage.isFastTracked)            ide.toggleFastTracking();        break;    case &apos;Flat design&apos;:        if (tf == MorphicPreferences.isFlat) break;        if (tf)            ide.flatDesign();        else            ide.defaultDesign();        break;    case &apos;Keyboard editing&apos;:            ScriptsMorph.prototype.enableKeyboard = tf;        break;    case &apos;Table support&apos;:            List.prototype.enableTables = tf;        break;    case &apos;Table lines&apos;:                TableMorph.prototype.highContrast = tf;        break;    case &apos;Visible stepping&apos;:        if (tf != Process.prototype.enableSingleStepping)            ide.toggleSingleStepping();        break;    case &apos;Thread safe scripts&apos;:        stage.isThreadSafe = tf;        break;    case &apos;Prefer smooth animations&apos;:        if (tf != (StageMorph.prototype.frameRate &gt; 0))            ide.toggleVariableFrameRate();        break;    case &apos;Flat line ends&apos;:        SpriteMorph.prototype.useFlatLineEnds = tf;        break;    case &apos;Codification support&apos;:        if (tf != StageMorph.prototype.enableCodeMapping) {            StageMorph.prototype.enableCodeMapping = tf;            ide.currentSprite.blocksCache.variables = null;            ide.currentSprite.paletteCache.variables = null;            ide.refreshPalette();        }        break;    case &apos;Inheritance support&apos;:        if (tf != StageMorph.prototype.enableInheritance) {            StageMorph.prototype.enableInheritance = tf;            ide.currentSprite.blocksCache.variables = null;            ide.currentSprite.paletteCache.variables = null;            ide.refreshPalette();        }        break;};}finally {ide.savingPreferences = false;};</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;' category='pen' type='command'>
      <header/>
      <code/>
      <translations/>
      <inputs>
        <input type='%n'/>
        <input type='%n'/>
      </inputs>
      <script>
        <block s='setColor'>
          <color>145,26,68,1</color>
        </block>
        <custom-block s='set flat line ends to %b'>
          <block s='reportBoolean'>
            <l>
              <bool>true</bool>
            </l>
          </block>
        </custom-block>
        <block s='setSize'>
          <block var='width'/>
        </block>
        <block s='down'/>
        <block s='forward'>
          <block var='length'/>
        </block>
        <block s='up'/>
      </script>
    </block-definition>
    <block-definition s='set flat line ends to %&apos;flag&apos;' category='pen' type='command'>
      <header/>
      <code/>
      <translations/>
      <inputs>
        <input type='%b'/>
      </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='rowA %&apos;length&apos;' category='pen' type='command'>
      <header/>
      <code/>
      <translations/>
      <inputs>
        <input type='%s'/>
      </inputs>
      <script>
        <block s='doRepeat'>
          <block var='length'/>
          <script>
            <custom-block s='draw brick, length: %n width: %n'>
              <l>30</l>
              <l>10</l>
            </custom-block>
            <block s='forward'>
              <l>5</l>
            </block>
          </script>
        </block>
        <block s='up'/>
        <block s='changeXPosition'>
          <block s='reportProduct'>
            <l>-1</l>
            <block s='reportSum'>
              <block s='reportProduct'>
                <block var='length'/>
                <l>30</l>
              </block>
              <block s='reportProduct'>
                <block var='length'/>
                <l>5</l>
              </block>
            </block>
          </block>
        </block>
      </script>
    </block-definition>
    <block-definition s='rowB %&apos;length&apos;' category='pen' type='command'>
      <header/>
      <code/>
      <translations/>
      <inputs>
        <input type='%s'/>
      </inputs>
      <script>
        <custom-block s='draw brick, length: %n width: %n'>
          <l>12.5</l>
          <l>10</l>
        </custom-block>
        <block s='forward'>
          <l>5</l>
        </block>
        <block s='doRepeat'>
          <block s='reportDifference'>
            <block var='length'/>
            <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>5</l>
            </block>
          </script>
        </block>
        <custom-block s='draw brick, length: %n width: %n'>
          <l>12.5</l>
          <l>10</l>
        </custom-block>
        <block s='up'/>
        <block s='changeXPosition'>
          <block s='reportProduct'>
            <l>-1</l>
            <block s='reportSum'>
              <block s='reportProduct'>
                <block s='reportDifference'>
                  <block var='length'/>
                  <l>1</l>
                </block>
                <l>5</l>
              </block>
              <block s='reportProduct'>
                <block var='length'/>
                <l>30</l>
              </block>
            </block>
          </block>
        </block>
      </script>
    </block-definition>
    <block-definition s='draw brick wall %&apos;length&apos; %&apos;height&apos;' category='pen' type='command'>
      <header/>
      <code/>
      <translations/>
      <inputs>
        <input type='%s'/>
        <input type='%s'/>
      </inputs>
      <script>
        <block s='doRepeat'>
          <l>6</l>
          <script>
            <custom-block s='rowA %s'>
              <block var='length'/>
            </custom-block>
            <block s='changeYPosition'>
              <l>15</l>
            </block>
            <custom-block s='rowB %s'>
              <block var='length'/>
            </custom-block>
            <block s='changeYPosition'>
              <l>15</l>
            </block>
          </script>
        </block>
      </script>
    </block-definition>
    <block-definition s='even?' category='pen' type='predicate'>
      <header/>
      <code/>
      <translations/>
      <inputs/>
      <script>
        <block s='doReport'>
          <l/>
        </block>
      </script>
    </block-definition>
  </blocks>
  <variables/>
</project><media name="U2L4-brickwall" app="Snap! 5.1, http://snap.berkeley.edu" version="1"></media></snapdata>