|
513 | 513 | ; Copyright 2007 Uri Wilensky. |
514 | 514 | ; See Info tab for full copyright and license.]]></code> |
515 | 515 | <widgets> |
516 | | - <view x="500" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-13" height="436" showTickCounter="true" patchSize="16.0" fontSize="10" wrappingAllowedY="true" width="436" tickCounterLabel="ticks" maxPycor="13" updateMode="1" maxPxcor="13" minPxcor="-13"></view> |
517 | | - <monitor x="90" precision="0" y="52" height="45" fontSize="11" display="total caught" width="78" sizeVersion="0">total-caught</monitor> |
518 | | - <button x="11" y="16" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="76" sizeVersion="0">setup</button> |
519 | | - <button x="90" y="16" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="77" sizeVersion="0">go</button> |
520 | | - <plot x="10" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="vision" y="370" xMin="0.0" height="120" legend="false" xMax="1000.0" yMin="0.0" xAxis="time" display="Avg. Vision vs. Time" width="160" sizeVersion="0"> |
| 516 | + <view x="720" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-13" height="436" showTickCounter="true" patchSize="16.0" fontSize="10" wrappingAllowedY="true" width="436" tickCounterLabel="ticks" maxPycor="13" updateMode="1" maxPxcor="13" minPxcor="-13"></view> |
| 517 | + <monitor x="116" precision="0" y="61" height="60" fontSize="11" width="100" display="total caught">total-caught</monitor> |
| 518 | + <plot x="10" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="vision" y="529" xMin="0.0" height="175" legend="false" xMax="1000.0" yMin="0.0" width="230" xAxis="time" display="Avg. Vision vs. Time"> |
521 | 519 | <setup></setup> |
522 | 520 | <update></update> |
523 | 521 | <pen interval="1.0" mode="0" display="bugs" color="-16777216" legend="true"> |
|
529 | 527 | <update></update> |
530 | 528 | </pen> |
531 | 529 | </plot> |
532 | | - <plot x="170" autoPlotX="true" yMax="50.0" autoPlotY="true" yAxis="frequency" y="250" xMin="0.0" height="120" legend="false" xMax="10.0" yMin="0.0" xAxis="speed" display="Speed of Bugs" width="160" sizeVersion="0"> |
| 530 | + <plot x="245" autoPlotX="true" yMax="50.0" autoPlotY="true" yAxis="frequency" y="349" xMin="0.0" height="175" legend="false" xMax="10.0" yMin="0.0" width="230" xAxis="speed" display="Speed of Bugs"> |
533 | 531 | <setup></setup> |
534 | 532 | <update></update> |
535 | 533 | <pen interval="0.1" mode="1" display="#" color="-16777216" legend="true"> |
|
561 | 559 | <update></update> |
562 | 560 | </pen> |
563 | 561 | </plot> |
564 | | - <plot x="10" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="rate" y="250" xMin="0.0" height="120" legend="false" xMax="1000.0" yMin="0.0" xAxis="time" display="Avg. Speed vs. Time" width="160" sizeVersion="0"> |
| 562 | + <plot x="10" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="rate" y="349" xMin="0.0" height="175" legend="false" xMax="1000.0" yMin="0.0" width="230" xAxis="time" display="Avg. Speed vs. Time"> |
565 | 563 | <setup></setup> |
566 | 564 | <update></update> |
567 | 565 | <pen interval="1.0" mode="0" display="birds" color="-6459832" legend="true"> |
|
573 | 571 | <update></update> |
574 | 572 | </pen> |
575 | 573 | </plot> |
576 | | - <plot x="330" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="frequency" y="250" xMin="0.0" height="120" legend="false" xMax="10.0" yMin="0.0" xAxis="speed" display="Speed of Birds" width="160" sizeVersion="0"> |
| 574 | + <plot x="480" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="frequency" y="349" xMin="0.0" height="175" legend="false" xMax="10.0" yMin="0.0" width="230" xAxis="speed" display="Speed of Birds"> |
577 | 575 | <setup></setup> |
578 | 576 | <update></update> |
579 | 577 | <pen interval="1.0" mode="1" display="#" color="-6459832" legend="true"> |
@@ -605,45 +603,47 @@ end |
605 | 603 | <update></update> |
606 | 604 | </pen> |
607 | 605 | </plot> |
608 | | - <monitor x="11" precision="0" y="52" height="45" fontSize="11" display="alive bugs" width="76" sizeVersion="0">(count bugs)</monitor> |
609 | | - <slider x="30" step="1" y="120" max="100" display="number-bugs" height="33" min="1" direction="Horizontal" default="30.0" variable="number-bugs" width="130" sizeVersion="0"></slider> |
610 | | - <slider x="30" step="1" y="185" max="10" display="number-birds" height="33" min="0" direction="Horizontal" default="10.0" variable="number-birds" width="130" sizeVersion="0"></slider> |
611 | | - <slider x="165" step="1" y="175" max="10" display="initial-bird-speed" height="33" min="0" direction="Horizontal" default="2.0" variable="initial-bird-speed" width="160" sizeVersion="0"></slider> |
612 | | - <slider x="165" step=".5" y="210" max="5" display="initial-bird-vision" height="33" min="0" direction="Horizontal" default="0.0" variable="initial-bird-vision" width="160" sizeVersion="0"></slider> |
613 | | - <slider x="165" step=".5" y="135" max="6" display="initial-bug-vision" height="33" min="0" direction="Horizontal" default="0.0" variable="initial-bug-vision" width="160" sizeVersion="0"></slider> |
614 | | - <switch x="300" y="15" height="33" on="true" variable="show-vision-cone?" display="show-vision-cone?" width="170" sizeVersion="0"></switch> |
615 | | - <switch x="184" y="15" height="33" on="true" variable="wiggle?" display="wiggle?" width="115" sizeVersion="0"></switch> |
616 | | - <slider x="330" step=".1" y="210" max="1" display="bird-vision-mutation" height="33" min="0" direction="Horizontal" default="0.0" variable="bird-vision-mutation" width="155" sizeVersion="0"></slider> |
617 | | - <slider x="330" step=".1" y="175" max="1" display="bird-speed-mutation" height="33" min="0" direction="Horizontal" default="1.0" variable="bird-speed-mutation" width="155" sizeVersion="0"></slider> |
618 | | - <slider x="330" step=".5" y="135" max="1" display="bug-vision-mutation" height="33" min="0" direction="Horizontal" default="0.0" variable="bug-vision-mutation" width="156" sizeVersion="0"></slider> |
619 | | - <plot x="170" autoPlotX="true" yMax="50.0" autoPlotY="true" yAxis="frequency" y="370" xMin="0.0" height="120" legend="false" xMax="10.0" yMin="0.0" xAxis="vision" display="Vision of Bugs" width="160" sizeVersion="0"> |
| 606 | + <monitor x="11" precision="0" y="61" height="60" fontSize="11" width="100" display="alive bugs">(count bugs)</monitor> |
| 607 | + <slider x="30" step="1" y="144" max="100" width="150" display="number-bugs" height="50" min="1" direction="Horizontal" default="30.0" variable="number-bugs"></slider> |
| 608 | + <slider x="30" step="1" y="226" max="10" width="150" display="number-birds" height="50" min="0" direction="Horizontal" default="10.0" variable="number-birds"></slider> |
| 609 | + <plot x="245" autoPlotX="true" yMax="50.0" autoPlotY="true" yAxis="frequency" y="529" xMin="0.0" height="175" legend="false" xMax="10.0" yMin="0.0" width="230" xAxis="vision" display="Vision of Bugs"> |
620 | 610 | <setup></setup> |
621 | 611 | <update></update> |
622 | 612 | <pen interval="1.0" mode="1" display="#" color="-16777216" legend="true"> |
623 | 613 | <setup></setup> |
624 | 614 | <update></update> |
625 | 615 | </pen> |
626 | 616 | </plot> |
627 | | - <plot x="330" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="birds" y="370" xMin="0.0" height="120" legend="false" xMax="10.0" yMin="0.0" xAxis="vision" display="Vision of Birds" width="160" sizeVersion="0"> |
| 617 | + <plot x="480" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="birds" y="529" xMin="0.0" height="175" legend="false" xMax="10.0" yMin="0.0" width="230" xAxis="vision" display="Vision of Birds"> |
628 | 618 | <setup></setup> |
629 | 619 | <update></update> |
630 | 620 | <pen interval="1.0" mode="1" display="#" color="-6459832" legend="true"> |
631 | 621 | <setup></setup> |
632 | 622 | <update></update> |
633 | 623 | </pen> |
634 | 624 | </plot> |
635 | | - <slider x="330" step=".1" y="100" max="1" display="bug-speed-mutation" height="33" min="0" direction="Horizontal" default="1.0" variable="bug-speed-mutation" width="156" sizeVersion="0"></slider> |
636 | | - <chooser x="325" y="50" height="45" variable="bug-pursuit-strategy" current="1" display="bug-pursuit-strategy" width="145" sizeVersion="0"> |
| 625 | + <slider x="230" step="1" y="125" max="10" width="160" display="initial-bug-speed" height="50" min="0" direction="Horizontal" default="2.0" variable="initial-bug-speed"></slider> |
| 626 | + <slider x="395" step=".5" y="180" max="1" width="156" display="bug-vision-mutation" height="50" min="0" direction="Horizontal" default="0.0" variable="bug-vision-mutation"></slider> |
| 627 | + <slider x="230" step=".5" y="180" max="6" width="160" display="initial-bug-vision" height="50" min="0" direction="Horizontal" default="0.0" variable="initial-bug-vision"></slider> |
| 628 | + <slider x="230" step="1" y="235" max="10" width="160" display="initial-bird-speed" height="50" min="0" direction="Horizontal" default="2.0" variable="initial-bird-speed"></slider> |
| 629 | + <slider x="230" step=".5" y="290" max="5" width="160" display="initial-bird-vision" height="50" min="0" direction="Horizontal" default="0.0" variable="initial-bird-vision"></slider> |
| 630 | + <slider x="395" step=".1" y="125" max="1" width="156" display="bug-speed-mutation" height="50" min="0" direction="Horizontal" default="1.0" variable="bug-speed-mutation"></slider> |
| 631 | + <slider x="395" step=".1" y="235" max="1" width="155" display="bird-speed-mutation" height="50" min="0" direction="Horizontal" default="1.0" variable="bird-speed-mutation"></slider> |
| 632 | + <slider x="395" step=".1" y="290" max="1" width="155" display="bird-vision-mutation" height="50" min="0" direction="Horizontal" default="0.0" variable="bird-vision-mutation"></slider> |
| 633 | + <chooser x="395" y="60" height="60" variable="bug-pursuit-strategy" current="1" width="155" display="bug-pursuit-strategy"> |
637 | 634 | <choice type="string" value="lock on one"></choice> |
638 | 635 | <choice type="string" value="nearest"></choice> |
639 | 636 | <choice type="string" value="none"></choice> |
640 | 637 | </chooser> |
641 | | - <chooser x="181" y="50" height="45" variable="bug-flee-strategy" current="1" display="bug-flee-strategy" width="138" sizeVersion="0"> |
| 638 | + <switch x="395" y="15" height="40" on="true" variable="show-vision-cone?" width="155" display="show-vision-cone?"></switch> |
| 639 | + <chooser x="230" y="60" height="60" variable="bug-flee-strategy" current="1" width="160" display="bug-flee-strategy"> |
642 | 640 | <choice type="string" value="any"></choice> |
643 | 641 | <choice type="string" value="nearest"></choice> |
644 | 642 | <choice type="string" value="none"></choice> |
645 | 643 | </chooser> |
646 | | - <slider x="165" step="1" y="100" max="10" display="initial-bug-speed" height="33" min="0" direction="Horizontal" default="2.0" variable="initial-bug-speed" width="160" sizeVersion="0"></slider> |
| 644 | + <switch x="230" y="15" height="40" on="true" variable="wiggle?" width="160" display="wiggle?"></switch> |
| 645 | + <button x="11" y="16" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="76">setup</button> |
| 646 | + <button x="116" y="16" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="77">go</button> |
647 | 647 | </widgets> |
648 | 648 | <info><![CDATA[## WHAT IS IT? |
649 | 649 |
|
|
0 commit comments