<xml xmlns="https://developers.google.com/blockly/xml">
  <block type="begin_timer" id="9pq5.J[Z=P=EM^?c+|hU" x="36" y="34">
    <next>
      <block type="transmit" id="0F{(cd:.|Sjj(.6f[Tt|">
        <value name="for_print">
          <block type="text" id="Tj_]3$+jK4QVG$v[8cKW">
            <field name="TEXT">Moving forward with red color.</field>
          </block>
        </value>
        <next>
          <block type="controls_whileUntil" id="]D@Q,kPGnd]6GX2w$2!8">
            <field name="MODE">UNTIL</field>
            <value name="BOOL">
              <block type="logic_compare" id="(pR72JAQsK+Ya%,;9=;L">
                <field name="OP">GT</field>
                <value name="A">
                  <block type="get_timer" id="!0-HgAyl2)6|#saeIz8E"></block>
                </value>
                <value name="B">
                  <block type="math_number" id="QfQ.u]q!]oFG_0-cL-~z">
                    <field name="NUM">5</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO">
              <block type="move_forward" id="w}v.1*fjDkNAWZfE2jn:">
                <next>
                  <block type="set_color" id="P3M3~6|Gdfv|C_VCo,V`">
                    <field name="color_option">'red'</field>
                  </block>
                </next>
              </block>
            </statement>
            <next>
              <block type="transmit" id="t]^GAP?Q+pdkvj6VrXJO">
                <value name="for_print">
                  <block type="text" id="r:^/^M|GOMRq5r:;I4)R">
                    <field name="TEXT">Turning right with green color.</field>
                  </block>
                </value>
                <next>
                  <block type="controls_whileUntil" id=":2UNl-{a_Zt(!DBqqi`q">
                    <field name="MODE">UNTIL</field>
                    <value name="BOOL">
                      <block type="logic_compare" id="?UzFbHj`}tk!sY.)I~8!">
                        <field name="OP">GT</field>
                        <value name="A">
                          <block type="get_timer" id="Ie1Fd,9|zDuf=kmO[PZ~"></block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="0p)e7YyKtN4$BIIAuui:">
                            <field name="NUM">10</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO">
                      <block type="turn_right" id="AI)i%2n7,cT5BVlIr9Vn">
                        <next>
                          <block type="set_color" id="up`hj::L5.3.`s9N0.`F">
                            <field name="color_option">'green'</field>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <next>
                      <block type="transmit" id="*PjoO?kgT,Vs!^6xouD=">
                        <value name="for_print">
                          <block type="text" id="{gb9O|0)/kCie/iUPo|4">
                            <field name="TEXT">Turning left with blue color.</field>
                          </block>
                        </value>
                        <next>
                          <block type="controls_whileUntil" id="b?PIkvB5G{#9#/48axCW">
                            <field name="MODE">UNTIL</field>
                            <value name="BOOL">
                              <block type="logic_compare" id="w8~T6FOfbZ0]HFOj5IJb">
                                <field name="OP">GT</field>
                                <value name="A">
                                  <block type="get_timer" id="T|LR.xB6LCAVy)i@7u3u"></block>
                                </value>
                                <value name="B">
                                  <block type="math_number" id="YQISxE(=SQF-_~%.6^3E">
                                    <field name="NUM">15</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO">
                              <block type="turn_left" id="BtNG)J,k:2qy50^p#%b5">
                                <next>
                                  <block type="set_color" id="GG%:15Y#@L3i51b8SX[+">
                                    <field name="color_option">'blue'</field>
                                  </block>
                                </next>
                              </block>
                            </statement>
                            <next>
                              <block type="transmit" id=".X%MY4Sb/o[{B4qJ4`Kp">
                                <value name="for_print">
                                  <block type="text" id="?_1UxO/_mGYU/.R$BNH_">
                                    <field name="TEXT">Moving backwards with white color.</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="controls_whileUntil" id="NBTtP5;!.Y:@TFp++g6c">
                                    <field name="MODE">UNTIL</field>
                                    <value name="BOOL">
                                      <block type="logic_compare" id="tIXI7;^yb]*Xie1BJuU3">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="get_timer" id="BrQ=)1{q1C,~sApM)|3:"></block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="c!SR^1z|@k|Bw)^n{co-">
                                            <field name="NUM">20</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO">
                                      <block type="move_reverse" id="G^vZG_yf5I~}((va8U$u">
                                        <next>
                                          <block type="set_color" id=")`*?h7UydGgKyb=+N7G9">
                                            <field name="color_option">'white'</field>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </next>
  </block>
  <project>
    <title>Time-controlled movement with colours</title>
    <description>Time-controlled movement with colours.</description>
  </project>
</xml>