kopia lustrzana https://github.com/backface/turtlestitch
1 wiersz
10 KiB
XML
1 wiersz
10 KiB
XML
<project name="dragon_curve_recursive" app="TurtleStitch 2.0, http://www.turtlestitch.org" version="1"><notes/><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAHRklEQVR4nO2dz2sUZxjHw/4fufVSLwrSWy7CHvwBEtRCL4EUehKNUTGGLmIQCsVbNqJdNqZmDh6yr7SeclmvZaGngifZY2SXXpSuNVbrfnvpTN6dfefX7uw8M+98PzAg776Zd5J8fOd93ud938zhfwaDQS6uT58+gZSHOfcf3W43F9dgMJD8eZCMMQq4urqKvb09oyAvX75Eu92OFmlt3rv+rp/DYG0enw/+wLs7X458Nlibp4AlxihgpVLB3NwcFhYWsLy8jEqlgqdPn+LkyZO4evUqGo0G2u02zp8/j83NTVSrVbRaLSwsLBgF/Gf/RwzW5vH+p6/x4dc7FJB4BApYqVRw7NgxrK+vo1KpYHV1FdVqFS9evECz2cTdu3fx/PlzbG5uotvt4smTJzh9+rRRwA+/1DBYm8fH3/fwvvENBSQeMxsD+iULuyhgeZmZgH99/0Us+XqtDQpYYjwBX79+jYODg0yvXq+Hfr8/ch0eHkr+PEjGeAL2+31OuZDMMQoYNs1imobxv1bx+V8c/vwtx3skEqOAzWYTrVYLZ86cQb1eR7VaRbvdxvLysjcNc+rUqUABh4M/8e6HryggiSRQwKWlJTSbTdTrdXS7Xayvr6PRaHjTMGE94MffHBzufkcBSSSxx4D7+/tYWlrilAtJlVSCEE65kEnxBHz79u3YlMisL065kLnoKoTMDgpIRKGARBQKSEShgEQUCkhEoYBEFApIRKGARBQKSEQppYDPnj0DAOzu7o59ZiqbhrD7DYdD71nKSukEdBwHV65cgeM42Nra8so7nQ4cx8Hly5fhOM7U7YTd78GDB3AcB47joFarTd1WkSmdgACMvU5YrzhNG1n0skWmdAIqpXD9+nUopbweUCmFmzdvQimFlZUVKKUAAI8fPx6pl4ROpxN4v2vXrkE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OIP3oD0caaA/38bGxkiZ3l7Y6V22kDsBXWw+Fjfvz5cluRVQZ5qTAoryCy7D6mcTuRIwaKN20r/rYfpa0/4KN+CQpOx/TyRXAgLpn5+Sx95Op0znwJjIlYBJTpUK+7seUadUuQP/PBC2vMuU+bGNXAkIZHukBZEndwLGIe5JUzp5WmZFjiikgJMslcoiw0GSU0gBgWJnOMgRhRAwbI+E6ZQqF1OmYZYZDpKcQgjI3s5eCiGgS5anVJFsKJSAeubCdEqVCdNeD1uzCkWkUAIS+6CARBQKSEShgEQUCkhEoYBEFApIRKGARBQKSEShgEQUCkhEoYBEFApIRKGARBQKSEShgEQUCkhEoYBEFApIRKGARBQKSEShgEQUCkhEoYBEFApIRKGARBQKSEShgEQUCkhEoYBEFApIRKGARBQKSEShgEQUCkhEoYBEFApIRKGARBQKSEShgEQUCkhEoYBEFApIRPkPmDTjCrtuu/cAAAAASUVORK5CYII=</thumbnail><stage name="Stage" width="480" height="360" costume="0" tempo="60" threadsafe="false" lines="round" codify="false" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAANLElEQVR4nO3dQY7sthEGYB/o3WTQPdJpkhskK/sC8TmyTHZZJRt7kdwmi8DBuIeaV02ypSL5fYA3gh6bKvaIAF34+4cfAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAmNT2Pz/v+/7n3/7btu3nbdu2DONlp34AVLnf7z+9v7//7Xa7/eG3//Z9/+v9fv9LhvGyUz8Aquz7/sfb7fan7127arzs1A+AKjaQNuoHQBUbSBv1A+C7Sg0+9/v9123b/vPQ9PP3yP9z7D1eduoHQJWDBp9/btv2y8drt9vtx0j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ExHrSMeN5Nf9u8psKhMm5QNmFfI/j0FFpVpk7IB8wrZv6fAokoNQ3tD4lPp37Y0dZ0xXmMTlrSj5KKJWVeNByzqoGGoOvGp9JN9ezwx66rxwklYj/dJuMqvlFzV0iDVezyA/zvj6HbmawBQJdNmNuI1AKiSaTMb8RoAVIkmObXc19L4dNCYlWZ+GrMAqBJNcmq8rzp96qCRKs38NGYBkFb2Y9/s8wOAKtk3uOzzA4Aq2Te47PMDgCrZG5+yzw8Aqhw1Pu1JEqmyzw8Ausl+7Jt9fgBQJfsGl31+AFAl+waXfX4ALKz0s4AtPx/YknA14vwAoErpZwFLDUil+w4amqoTrkacHwBUyX5Mm31+AFAl+waXfX4AUCX7Bpd9fgBQpdSAtBd+PjBTwlWm+QFAlZaf9rsy4SrL/ACgm+zHvtnnBwBVsm9w2ecHAFWyb3DZ5wcAVaLJUFclSGWfHwBUiSZDXZUglX1+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEP6L+3OoPuuSnnvAAAAAElFTkSuQmCC</pentrails><costumes><list id="2"/></costumes><sounds><list id="3"/></sounds><variables/><blocks/><scripts/><sprites><sprite name="Sprite" idx="1" x="-110" y="0" heading="270" scale="1" rotation="1" draggable="true" costume="0" color="80,80,80" pen="tip" id="8"><costumes><list id="9"/></costumes><sounds><list id="10"/></sounds><variables/><blocks/><scripts><script x="36" y="28"><block s="receiveGo"/><block s="doSetVar"><l>iterations</l><l>10</l></block><block s="doSetVar"><l>length</l><l>5</l></block><block s="clear"/><block s="up"/><block s="gotoXY"><l>50</l><l>0</l></block><block s="setHeading"><l>0</l></block><block s="down"/><custom-block s="dragon_go_left %s %s"><block var="iterations"/><block var="length"/></custom-block></script><comment x="353" y="31" w="167" collapsed="false">DRAGON CURVE Example
|
|
|
|
Uses a recursive approach to draw a Dragon Curve. For more information on the Dragon curve see it's Wikipedia page.
|
|
</comment><script x="212" y="290"><custom-block s="dragon_to_right %s %s"><l/><l/><comment w="172" collapsed="false">This example uses custom blocks and recursion.
|
|
These are the blocks
|
|
</comment></custom-block><custom-block s="dragon_go_left %s %s"><l/><l/></custom-block></script></scripts></sprite><watcher var="iterations" style="normal" x="6" y="2.00000399999999" color="243,118,29"/><watcher var="length" style="normal" x="6.999999999999886" y="23.000001999999995" color="243,118,29"/></sprites></stage><hidden/><headers/><code/><blocks><block-definition s="dragon_go_left %'level' %'len'" type="command" category="other"><header/><code/><inputs><input type="%s"/><input type="%s"/></inputs><script><block s="doIfElse"><block s="reportEquals"><block var="level"/><l>0</l></block><script><block s="forward"><block var="len"/></block></script><script><custom-block s="dragon_go_left %s %s"><block s="reportDifference"><block var="level"/><l>1</l></block><block var="len"/></custom-block><block s="turnLeft"><l>90</l></block><custom-block s="dragon_to_right %s %s"><block s="reportDifference"><block var="level"/><l>1</l></block><block var="len"/></custom-block></script></block></script></block-definition><block-definition s="dragon_to_right %'level' %'len'" type="command" category="other"><header/><code/><inputs><input type="%s"/><input type="%s"/></inputs><script><block s="doIfElse"><block s="reportEquals"><block var="level"/><l>0</l></block><script><block s="forward"><block var="len"/></block></script><script><custom-block s="dragon_go_left %s %s"><block s="reportDifference"><block var="level"/><l>1</l></block><block var="len"/></custom-block><block s="turn"><l>90</l></block><custom-block s="dragon_to_right %s %s"><block s="reportDifference"><block var="level"/><l>1</l></block><block var="len"/></custom-block></script></block></script></block-definition></blocks><variables><variable name="length"><l>5</l></variable><variable name="iterations"><l>10</l></variable></variables></project>
|