Skip to content

Commit 3c8316f

Browse files
committed
Convert Code Examples to new sizes
1 parent 825cdaf commit 3c8316f

73 files changed

Lines changed: 347 additions & 347 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Code Examples/3D Shapes Example.nlogox

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@ end
3939
; copyright and related or neighboring rights to this model.]]></code>
4040
<widgets>
4141
<view x="25" wrappingAllowedX="true" y="14" frameRate="100.0" minPycor="-2" height="64" showTickCounter="true" patchSize="12.0" fontSize="14" wrappingAllowedY="false" width="664" tickCounterLabel="ticks" maxPycor="2" updateMode="0" maxPxcor="27" minPxcor="-27"></view>
42-
<button x="32" y="146" height="47" disableUntilTicks="false" forever="false" kind="Observer" width="113" sizeVersion="0">setup
42+
<button x="32" y="146" height="47" disableUntilTicks="false" forever="false" kind="Observer" width="113">setup
4343
</button>
44-
<button x="32" y="223" height="33" disableUntilTicks="true" forever="true" kind="Turtle" width="111" sizeVersion="0">right 0.1</button>
45-
<button x="170" y="223" height="33" disableUntilTicks="true" forever="true" kind="Turtle" display="bigger" width="145" sizeVersion="0">every 0.01 [
44+
<button x="32" y="223" height="40" disableUntilTicks="true" forever="true" kind="Turtle" width="111">right 0.1</button>
45+
<button x="170" y="223" height="40" disableUntilTicks="true" forever="true" kind="Turtle" width="145" display="bigger">every 0.01 [
4646
set size min list world-height size + 0.01
4747
]
4848
</button>
49-
<button x="170" y="259" height="33" disableUntilTicks="true" forever="true" kind="Turtle" display="smaller" width="146" sizeVersion="0">every 0.01 [
49+
<button x="170" y="268" height="40" disableUntilTicks="true" forever="true" kind="Turtle" width="146" display="smaller">every 0.01 [
5050
set size max list 0 size - 0.01
5151
]</button>
52-
<button x="344" y="220" height="33" disableUntilTicks="true" forever="false" kind="Turtle" width="107" sizeVersion="0">set color red</button>
53-
<button x="344" y="258" height="33" disableUntilTicks="true" forever="false" kind="Turtle" width="110" sizeVersion="0">set color green</button>
54-
<button x="344" y="297" height="33" disableUntilTicks="true" forever="false" kind="Turtle" width="112" sizeVersion="0">set color white</button>
55-
<note x="172" y="116" height="18" textColorLight="-16777216" fontSize="11" width="412" markdown="false">Try this in the 3D view. Zoom in to get a good look at the 3D shapes.</note>
56-
<button x="169" y="147" height="46" disableUntilTicks="true" forever="false" kind="Observer" width="110" sizeVersion="0">demo</button>
52+
<button x="344" y="220" height="40" disableUntilTicks="true" forever="false" kind="Turtle" width="107">set color red</button>
53+
<button x="344" y="265" height="40" disableUntilTicks="true" forever="false" kind="Turtle" width="110">set color green</button>
54+
<button x="344" y="311" height="40" disableUntilTicks="true" forever="false" kind="Turtle" width="112">set color white</button>
55+
<note x="172" y="116" backgroundDark="0" fontSize="11" width="412" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Try this in the 3D view. Zoom in to get a good look at the 3D shapes.</note>
56+
<button x="169" y="147" height="46" disableUntilTicks="true" forever="false" kind="Observer" width="110">demo</button>
5757
</widgets>
5858
<info><![CDATA[## WHAT IS IT?
5959

Code Examples/Ask Ordering Example.nlogox

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ end
4747
; To the extent possible under law, Uri Wilensky has waived all
4848
; copyright and related or neighboring rights to this model.]]></code>
4949
<widgets>
50-
<view x="10" wrappingAllowedX="true" y="97" frameRate="30.0" minPycor="-8" height="208" showTickCounter="true" patchSize="12.0" fontSize="12" wrappingAllowedY="true" width="616" tickCounterLabel="ticks" maxPycor="8" updateMode="1" maxPxcor="50" minPxcor="0"></view>
51-
<button x="81" y="10" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="95" sizeVersion="0">setup</button>
52-
<note x="408" y="53" height="28" textColorLight="-16777216" fontSize="11" width="167" markdown="false">Stop one GO button before
50+
<view x="10" wrappingAllowedX="true" y="111" frameRate="30.0" minPycor="-8" height="208" showTickCounter="true" patchSize="12.0" fontSize="12" wrappingAllowedY="true" width="616" tickCounterLabel="ticks" maxPycor="8" updateMode="1" maxPxcor="50" minPxcor="0"></view>
51+
<button x="81" y="10" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="95">setup</button>
52+
<button x="16" y="57" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="103">go-random</button>
53+
<button x="127" y="57" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="157">go-by-who-number</button>
54+
<button x="291" y="57" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="103">go-by-size</button>
55+
<note x="408" y="62" backgroundDark="0" fontSize="11" width="167" markdown="false" height="28" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Stop one GO button before
5356
starting another.</note>
54-
<button x="16" y="50" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="103" sizeVersion="0">go-random</button>
55-
<button x="127" y="50" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="157" sizeVersion="0">go-by-who-number</button>
56-
<button x="291" y="50" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="103" sizeVersion="0">go-by-size</button>
5757
</widgets>
5858
<info><![CDATA[## WHAT IS IT?
5959

Code Examples/Ask-Concurrent Example.nlogox

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,18 @@ end
5656
; copyright and related or neighboring rights to this model.</code>
5757
<widgets>
5858
<view x="252" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-16" height="433" showTickCounter="true" patchSize="13.0" fontSize="10" wrappingAllowedY="true" width="433" tickCounterLabel="ticks" maxPycor="16" updateMode="0" maxPxcor="16" minPxcor="-16"></view>
59-
<button x="92" y="37" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="66" sizeVersion="0">setup</button>
60-
<button x="13" y="169" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="224" sizeVersion="0">ask-concurrent turtles [ fd 5 ]</button>
61-
<button x="54" y="128" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="148" sizeVersion="0">ask turtles [ fd 5 ]</button>
62-
<note x="45" y="209" height="70" backgroundDark="0" fontSize="11" width="162" markdown="false" textColorLight="-16777216" backgroundLight="0">To see the difference,
59+
<button x="92" y="37" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="66">setup</button>
60+
<button x="13" y="188" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="224">ask-concurrent turtles [ fd 5 ]</button>
61+
<button x="54" y="140" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="148">ask turtles [ fd 5 ]</button>
62+
<note x="45" y="235" backgroundDark="0" fontSize="11" width="162" markdown="false" height="70" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">To see the difference,
6363
adjust the speed slider
6464
towards "slower" until you
6565
see the turtles moving
6666
one at a time.</note>
67-
<note x="37" y="95" height="33" backgroundDark="0" fontSize="11" width="192" markdown="false" textColorLight="-16777216" backgroundLight="0">example of difference between
67+
<note x="37" y="102" backgroundDark="0" fontSize="11" width="192" markdown="false" height="33" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">example of difference between
6868
ASK and ASK-CONCURRENT:</note>
69-
<button x="87" y="336" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="63" sizeVersion="0">go</button>
70-
<note x="35" y="302" height="30" backgroundDark="0" fontSize="11" width="190" markdown="false" textColorLight="-16777216" backgroundLight="0">slightly more involved
69+
<button x="87" y="362" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="63">go</button>
70+
<note x="35" y="328" backgroundDark="0" fontSize="11" width="190" markdown="false" height="30" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">slightly more involved
7171
example of ASK-CONCURRENT:</note>
7272
</widgets>
7373
<info><![CDATA[## WHAT IS IT?

Code Examples/Bounce Example.nlogox

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ end
5757
; copyright and related or neighboring rights to this model.</code>
5858
<widgets>
5959
<view x="175" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-20" height="332" showTickCounter="true" patchSize="8.0" fontSize="10" wrappingAllowedY="false" width="332" tickCounterLabel="ticks" maxPycor="20" updateMode="1" maxPxcor="20" minPxcor="-20"></view>
60-
<button x="17" y="51" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="58" sizeVersion="0">setup</button>
61-
<button x="88" y="51" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="go" width="55" sizeVersion="0">go</button>
62-
<switch x="18" y="105" height="33" on="false" variable="leave-trace?" display="leave-trace?" width="129" sizeVersion="0"></switch>
60+
<button x="17" y="51" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="58">setup</button>
61+
<button x="88" y="51" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="55" display="go">go</button>
62+
<switch x="18" y="112" height="40" on="false" variable="leave-trace?" width="129" display="leave-trace?"></switch>
6363
</widgets>
6464
<info><![CDATA[## WHAT IS IT?
6565

Code Examples/Box Drawing Example.nlogox

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ end
5050
; To the extent possible under law, Uri Wilensky has waived all
5151
; copyright and related or neighboring rights to this model.]]></code>
5252
<widgets>
53-
<view x="254" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-12" height="354" showTickCounter="true" patchSize="14.0" fontSize="10" wrappingAllowedY="true" width="354" tickCounterLabel="ticks" maxPycor="12" updateMode="1" maxPxcor="12" minPxcor="-12"></view>
54-
<button x="14" y="88" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="setup-corner" width="92" sizeVersion="0">setup-corner</button>
55-
<button x="17" y="137" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="setup-center" width="89" sizeVersion="0">setup-center</button>
56-
<slider x="137" step="1" y="110" max="25" display="edge" height="33" min="1" direction="Horizontal" default="8.0" variable="edge" width="92" sizeVersion="0"></slider>
53+
<view x="312" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-12" height="354" showTickCounter="true" patchSize="14.0" fontSize="10" wrappingAllowedY="true" width="354" tickCounterLabel="ticks" maxPycor="12" updateMode="1" maxPxcor="12" minPxcor="-12"></view>
54+
<button x="14" y="88" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="92" display="setup-corner">setup-corner</button>
55+
<button x="17" y="144" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="89" display="setup-center">setup-center</button>
56+
<slider x="137" step="1" y="110" max="25" width="150" display="edge" height="50" min="1" direction="Horizontal" default="8.0" variable="edge"></slider>
5757
</widgets>
5858
<info><![CDATA[## WHAT IS IT?
5959

Code Examples/Breed Procedures Example.nlogox

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ end
4747
; copyright and related or neighboring rights to this model.</code>
4848
<widgets>
4949
<view x="156" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-1" height="484" showTickCounter="true" patchSize="160.0" fontSize="28" wrappingAllowedY="true" width="484" tickCounterLabel="ticks" maxPycor="1" updateMode="1" maxPxcor="1" minPxcor="-1"></view>
50-
<button x="43" y="47" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="66" sizeVersion="0">setup</button>
51-
<button x="43" y="85" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="66" sizeVersion="0">go</button>
50+
<button x="43" y="47" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="66">setup</button>
51+
<button x="43" y="92" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="66">go</button>
5252
</widgets>
5353
<info><![CDATA[## WHAT IS IT?
5454

Code Examples/Breeds and Shapes Example.nlogox

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ end
3636
; copyright and related or neighboring rights to this model.</code>
3737
<widgets>
3838
<view x="272" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-6" height="394" showTickCounter="true" patchSize="30.0" fontSize="10" wrappingAllowedY="true" width="394" tickCounterLabel="ticks" maxPycor="6" updateMode="1" maxPxcor="6" minPxcor="-6"></view>
39-
<button x="143" y="87" height="38" disableUntilTicks="true" forever="false" kind="Observer" width="112" sizeVersion="0">move-fish</button>
40-
<button x="16" y="86" height="39" disableUntilTicks="true" forever="false" kind="Observer" width="112" sizeVersion="0">move-monsters</button>
41-
<button x="39" y="35" height="36" disableUntilTicks="false" forever="false" kind="Observer" display="setup" width="192" sizeVersion="0">setup</button>
39+
<button x="143" y="91" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="112">move-fish</button>
40+
<button x="16" y="90" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="112">move-monsters</button>
41+
<button x="39" y="35" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="192" display="setup">setup</button>
4242
</widgets>
4343
<info><![CDATA[## WHAT IS IT?
4444

Code Examples/Case Conversion Example.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ end
5353
; copyright and related or neighboring rights to this model.</code>
5454
<widgets>
5555
<view x="296" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-17" height="319" showTickCounter="true" patchSize="9.0" fontSize="10" wrappingAllowedY="true" width="319" tickCounterLabel="ticks" maxPycor="17" updateMode="1" maxPxcor="17" minPxcor="-17"></view>
56-
<button x="68" y="121" height="97" disableUntilTicks="false" forever="false" kind="Observer" width="162" sizeVersion="0">try-it</button>
56+
<button x="68" y="121" height="97" disableUntilTicks="false" forever="false" kind="Observer" width="162">try-it</button>
5757
</widgets>
5858
<info><![CDATA[## WHAT IS IT?
5959

Code Examples/Circular Path Example.nlogox

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@ end
6262
; copyright and related or neighboring rights to this model.</code>
6363
<widgets>
6464
<view x="205" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-16" height="433" showTickCounter="true" patchSize="13.0" fontSize="10" wrappingAllowedY="false" width="433" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
65-
<button x="30" y="30" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="140" sizeVersion="0">setup</button>
66-
<button x="30" y="95" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="140" sizeVersion="0">go-distance</button>
67-
<chooser x="30" y="130" height="45" variable="step-size" current="1" display="step-size" width="140" sizeVersion="0">
65+
<button x="30" y="30" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="140">setup</button>
66+
<button x="30" y="102" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="140">go-distance</button>
67+
<chooser x="30" y="147" height="60" variable="step-size" current="1" width="140" display="step-size">
6868
<choice type="double" value="10.0"></choice>
6969
<choice type="double" value="1.0"></choice>
7070
<choice type="double" value="0.1"></choice>
7171
<choice type="double" value="0.01"></choice>
7272
<choice type="double" value="0.001"></choice>
7373
</chooser>
74-
<button x="30" y="205" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="140" sizeVersion="0">go-angle</button>
75-
<chooser x="30" y="240" height="45" variable="arc-angle" current="0" display="arc-angle" width="140" sizeVersion="0">
74+
<button x="30" y="237" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="140">go-angle</button>
75+
<chooser x="30" y="282" height="60" variable="arc-angle" current="0" width="140" display="arc-angle">
7676
<choice type="double" value="1.0"></choice>
7777
<choice type="double" value="2.0"></choice>
7878
<choice type="double" value="5.0"></choice>

Code Examples/Color Chart Example.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ end
6161
; copyright and related or neighboring rights to this model.]]></code>
6262
<widgets>
6363
<view x="134" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-13" height="454" showTickCounter="true" patchSize="30.0" fontSize="10" wrappingAllowedY="true" width="484" tickCounterLabel="ticks" maxPycor="1" updateMode="1" maxPxcor="11" minPxcor="-4"></view>
64-
<button x="12" y="46" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="93" sizeVersion="0">setup</button>
64+
<button x="12" y="46" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="93">setup</button>
6565
</widgets>
6666
<info><![CDATA[## WHAT IS IT?
6767

0 commit comments

Comments
 (0)