﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.97.5154.6193"?>
<regions>
  <settings>
    <identity>
      <id>64dfdeb3-c6bb-4bf5-bcb6-dd8ea08cde1e</id>
      <revision>35</revision>
    </identity>
    <metadata lang="eng">
      <title>Colors of the rainbow</title>
      <author>Andrey Ivashov</author>
      <description>Game to compose colors of the rainbow in correct order.</description>
      <company>SMath, http://smath.info/</company>
      <keywords>game, modeller, rainbow</keywords>
    </metadata>
    <calculation>
      <precision>4</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="true" printAreas="true" simpleEqualsOnly="false" printBackgroundImages="true">
      <paper id="1" orientation="Portrait" width="850" height="1100" />
      <margins left="39" right="39" top="39" bottom="39" />
      <header alignment="Center" color="#a9a9a9">&amp;[DATE] &amp;[TIME] - &amp;[FILENAME]</header>
      <footer alignment="Center" color="#a9a9a9">&amp;[PAGENUM] / &amp;[COUNT]</footer>
      <backgrounds />
    </pageModel>
    <dependences>
      <assembly name="SMath Studio Desktop" version="0.97.5154.6193" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="Text Region" version="1.10.5154.6555" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="Math Region" version="0.97.5154.6193" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="Modeller Region" version="1.0.5147.447" guid="d5139464-68f1-4c95-bb0a-66f7ac41f86c" />
      <assembly name="Special Functions" version="1.11.5154.6552" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
    </dependences>
  </settings>
  <region id="0" left="90" top="9" width="293" height="34" color="#0000ff" bgColor="#ffffff" fontSize="16">
    <text lang="eng">
      <p bold="true">Colors of the rainbow</p>
    </text>
  </region>
  <region id="1" left="9" top="36" width="486" height="40" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>Using drag'n'drop of colors from palette at right compose colors of the rainbow in correct order from left to right.</p>
    </text>
  </region>
  <region id="2" top="72" color="#000000" bgColor="#ffffff">
    <area collapsed="true" />
    <region id="3" left="9" top="90" width="559" height="104" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="false" position="Top" lang="eng">
          <p />
        </description>
        <input>
          <e type="operand">color</e>
          <e type="function" args="1">rect</e>
          <e type="operand">color</e>
          <e type="operand" style="string"> rectangle</e>
          <e type="function" preserve="true" args="2">concat</e>
          <e type="operand">0</e>
          <e type="operand">0</e>
          <e type="operand">80</e>
          <e type="operand">0</e>
          <e type="operand">80</e>
          <e type="operand">120</e>
          <e type="operand">0</e>
          <e type="operand">120</e>
          <e type="operand">0</e>
          <e type="operand">0</e>
          <e type="operand">5</e>
          <e type="operand">2</e>
          <e type="function" preserve="true" args="12">mat</e>
          <e type="operand" style="string">Black</e>
          <e type="operand">1</e>
          <e type="operand">color</e>
          <e type="operand">1</e>
          <e type="operand">4</e>
          <e type="function" preserve="true" args="6">mat</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" preserve="true" args="4">mat</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" preserve="true" args="3">line</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="4" left="9" top="198" width="225" height="148" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">templates</e>
          <e type="operand" style="string">Blue</e>
          <e type="function" args="1">rect</e>
          <e type="operand" style="string">Violet</e>
          <e type="function" args="1">rect</e>
          <e type="operand" style="string">Indigo</e>
          <e type="function" args="1">rect</e>
          <e type="operand" style="string">Red</e>
          <e type="function" args="1">rect</e>
          <e type="operand" style="string">Green</e>
          <e type="function" args="1">rect</e>
          <e type="operand" style="string">Yellow</e>
          <e type="function" args="1">rect</e>
          <e type="operand" style="string">Orange</e>
          <e type="function" args="1">rect</e>
          <e type="operand">7</e>
          <e type="operand">1</e>
          <e type="function" preserve="true" args="9">sys</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="5" top="342" color="#000000" bgColor="#ffffff">
      <area terminator="true" />
    </region>
  </region>
  <region id="6" left="9" top="360" width="483" height="217" color="#000000" bgColor="#ffffff" fontSize="10" showInputData="False">
    <modeller templates="templates" factor="1" drawScale="false">
      <shapes />
      <input>
        <e type="operand">output</e>
      </input>
    </modeller>
  </region>
  <region id="7" top="585" color="#000000" bgColor="#ffffff">
    <area collapsed="true" />
    <region id="8" left="9" top="603" width="175" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">result</e>
          <e type="operand" style="string">Well done!</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="9" left="9" top="630" width="507" height="280" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">output</e>
          <e type="operand">0</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">result</e>
          <e type="operand" style="string">Compose colors of the rainbow in correct order.</e>
          <e type="operator" args="2">:</e>
          <e type="operand">output</e>
          <e type="operand">output</e>
          <e type="operand">2</e>
          <e type="function" preserve="true" args="2">csort</e>
          <e type="operator" args="2">:</e>
          <e type="operand">output</e>
          <e type="function" preserve="true" args="1">rows</e>
          <e type="operand">7</e>
          <e type="operator" args="2">≠</e>
          <e type="operand">result</e>
          <e type="operand" style="string">Incorrect number of colors used.</e>
          <e type="operator" args="2">:</e>
          <e type="operand">j</e>
          <e type="operand">0</e>
          <e type="operator" args="2">:</e>
          <e type="operand">k</e>
          <e type="operand">4</e>
          <e type="operand">7</e>
          <e type="operand">6</e>
          <e type="operand">5</e>
          <e type="operand">1</e>
          <e type="operand">3</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="operand">7</e>
          <e type="function" preserve="true" args="9">mat</e>
          <e type="operand">j</e>
          <e type="operand">j</e>
          <e type="operand">1</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">output</e>
          <e type="operand">j</e>
          <e type="operand">1</e>
          <e type="function" preserve="true" args="3">el</e>
          <e type="operand">k</e>
          <e type="operator" args="2">≠</e>
          <e type="operand">result</e>
          <e type="operand" style="string">Colors order is incorrect.</e>
          <e type="operator" args="2">:</e>
          <e type="operand">break</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" preserve="true" args="4">line</e>
          <e type="operand">continue</e>
          <e type="function" preserve="true" args="3">if</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" preserve="true" args="4">line</e>
          <e type="function" preserve="true" args="3">for</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" preserve="true" args="4">line</e>
          <e type="function" preserve="true" args="3">if</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" preserve="true" args="4">line</e>
          <e type="function" preserve="true" args="3">if</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" preserve="true" args="3">line</e>
        </input>
      </math>
    </region>
    <region id="10" top="909" color="#000000" bgColor="#ffffff">
      <area terminator="true" />
    </region>
  </region>
  <region id="11" left="9" top="927" width="428" height="24" color="#000000" bgColor="#ffffff" fontSize="10" showInputData="False">
    <math>
      <input>
        <e type="operand">result</e>
      </input>
      <result action="numeric">
        <e type="operand" style="string">Compose colors of the rainbow in correct order.</e>
      </result>
    </math>
  </region>
</regions>