Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 7 additions & 7 deletions 3D/Code Examples/Airplane Landing Example 3D.nlogox3d
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ end
; To the extent possible under law, Uri Wilensky has waived all
; copyright and related or neighboring rights to this model.]]></code>
<widgets>
<view3d wrappingAllowedZ="true" x="0" maxPycor="13" updateMode="1" wrappingAllowedX="true" y="0" frameRate="30.0" maxPzcor="13" minPycor="-13" height="350" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="true" width="330" tickCounterLabel="ticks" maxPxcor="13" minPxcor="-13" minPzcor="-13"></view3d>
<button x="58" y="52" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="70">setup</button>
<button x="130" y="52" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="69">go</button>
<button x="58" y="98" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="141">reset-perspective</button>
<button x="58" y="169" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="141">follow turtle 0</button>
<button x="58" y="204" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="141">ride turtle 0</button>
<button x="58" y="134" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="141">watch turtle 0</button>
<view3d wrappingAllowedZ="true" x="0" wrappingAllowedX="true" y="0" minPycor="-13" height="350" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="true" width="330" tickCounterLabel="ticks" maxPycor="13" updateMode="1" frameRate="30.0" maxPzcor="13" maxPxcor="13" minPxcor="-13" minPzcor="-13"></view3d>
<button x="58" y="52" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="70" sizeVersion="0">setup</button>
<button x="130" y="52" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="69" sizeVersion="0">go</button>
<button x="58" y="98" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="141" sizeVersion="0">reset-perspective</button>
<button x="58" y="169" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="141" sizeVersion="0">follow turtle 0</button>
<button x="58" y="204" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="141" sizeVersion="0">ride turtle 0</button>
<button x="58" y="134" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="141" sizeVersion="0">watch turtle 0</button>
</widgets>
<info><![CDATA[## WHAT IS IT?

Expand Down
16 changes: 8 additions & 8 deletions 3D/Code Examples/Bouncing Balls Example 3D.nlogox3d
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ end
; To the extent possible under law, Uri Wilensky has waived all
; copyright and related or neighboring rights to this model.]]></code>
<widgets>
<view3d wrappingAllowedZ="true" x="0" maxPycor="9" updateMode="1" wrappingAllowedX="true" y="0" frameRate="30.0" maxPzcor="9" minPycor="-9" height="254" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="true" width="241" tickCounterLabel="ticks" maxPxcor="9" minPxcor="-9" minPzcor="-9"></view3d>
<button x="63" y="53" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="85">setup</button>
<button x="149" y="53" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="85">go</button>
<slider x="62" step="1" y="18" height="33" min="0" direction="Horizontal" max="50" default="15.0" variable="ball-count" width="172" sizeVersion="0" display="ball-count"></slider>
<switch x="18" y="97" height="33" on="false" variable="color-speed?" width="128" sizeVersion="0" display="color-speed?"></switch>
<switch x="147" y="97" height="33" on="true" variable="tails?" width="128" sizeVersion="0" display="tails?"></switch>
<button x="70" y="188" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="145">reset-perspective</button>
<button x="69" y="153" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="146">watch one-of balls</button>
<view3d wrappingAllowedZ="true" x="0" wrappingAllowedX="true" y="0" minPycor="-9" height="254" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="true" width="241" tickCounterLabel="ticks" maxPycor="9" updateMode="1" frameRate="30.0" maxPzcor="9" maxPxcor="9" minPxcor="-9" minPzcor="-9"></view3d>
<button x="63" y="53" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="85" sizeVersion="0">setup</button>
<button x="149" y="53" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="85" sizeVersion="0">go</button>
<slider x="62" step="1" y="18" max="50" display="ball-count" height="33" min="0" direction="Horizontal" default="15.0" variable="ball-count" width="172" sizeVersion="0"></slider>
<switch x="18" y="97" height="33" on="false" variable="color-speed?" display="color-speed?" width="128" sizeVersion="0"></switch>
<switch x="147" y="97" height="33" on="true" variable="tails?" display="tails?" width="128" sizeVersion="0"></switch>
<button x="70" y="188" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="145" sizeVersion="0">reset-perspective</button>
<button x="69" y="153" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="146" sizeVersion="0">watch one-of balls</button>
</widgets>
<info><![CDATA[## WHAT IS IT?

Expand Down
6 changes: 3 additions & 3 deletions 3D/Code Examples/Hill Climbing Example 3D.nlogox3d
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ end
; To the extent possible under law, Uri Wilensky has waived all
; copyright and related or neighboring rights to this model.]]></code>
<widgets>
<view3d wrappingAllowedZ="true" x="0" maxPycor="10" updateMode="1" wrappingAllowedX="true" y="0" frameRate="30.0" maxPzcor="5" minPycor="-10" height="152" showTickCounter="true" patchSize="6.0" fontSize="10" wrappingAllowedY="true" width="241" tickCounterLabel="ticks" maxPxcor="10" minPxcor="-10" minPzcor="0"></view3d>
<button x="24" y="51" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="91">setup</button>
<button x="24" y="90" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="91">go</button>
<view3d wrappingAllowedZ="true" x="0" wrappingAllowedX="true" y="0" minPycor="-10" height="152" showTickCounter="true" patchSize="6.0" fontSize="10" wrappingAllowedY="true" width="241" tickCounterLabel="ticks" maxPycor="10" updateMode="1" frameRate="30.0" maxPzcor="5" maxPxcor="10" minPxcor="-10" minPzcor="0"></view3d>
<button x="24" y="51" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="91" sizeVersion="0">setup</button>
<button x="24" y="90" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="91" sizeVersion="0">go</button>
</widgets>
<info><![CDATA[## WHAT IS IT?

Expand Down
16 changes: 8 additions & 8 deletions 3D/Code Examples/Neighborhoods Example 3D.nlogox3d
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,16 @@ end
; To the extent possible under law, Uri Wilensky has waived all
; copyright and related or neighboring rights to this model.</code>
<widgets>
<view3d wrappingAllowedZ="true" x="0" maxPycor="17" updateMode="1" wrappingAllowedX="true" y="0" frameRate="30.0" maxPzcor="6" minPycor="-17" height="341" showTickCounter="true" patchSize="9.0" fontSize="10" wrappingAllowedY="true" width="321" tickCounterLabel="ticks" maxPxcor="17" minPxcor="-17" minPzcor="-6"></view3d>
<button x="76" y="29" height="37" disableUntilTicks="false" forever="false" kind="Observer" width="127">setup</button>
<button x="10" y="90" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="120">paint-neighbors</button>
<slider x="132" step="1" y="124" height="33" min="1" direction="Horizontal" max="5" default="2.0" variable="radius" width="133" sizeVersion="0" display="radius"></slider>
<button x="10" y="158" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="120">paint-at-points</button>
<button x="132" y="90" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="133">paint-neighbors6</button>
<chooser x="132" y="158" height="45" variable="points" current="0" width="138" sizeVersion="0" display="points">
<view3d wrappingAllowedZ="true" x="0" wrappingAllowedX="true" y="0" minPycor="-17" height="341" showTickCounter="true" patchSize="9.0" fontSize="10" wrappingAllowedY="true" width="321" tickCounterLabel="ticks" maxPycor="17" updateMode="1" frameRate="30.0" maxPzcor="6" maxPxcor="17" minPxcor="-17" minPzcor="-6"></view3d>
<button x="76" y="29" height="37" disableUntilTicks="false" forever="false" kind="Observer" width="127" sizeVersion="0">setup</button>
<button x="10" y="90" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="120" sizeVersion="0">paint-neighbors</button>
<slider x="132" step="1" y="124" max="5" display="radius" height="33" min="1" direction="Horizontal" default="2.0" variable="radius" width="133" sizeVersion="0"></slider>
<button x="10" y="158" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="120" sizeVersion="0">paint-at-points</button>
<button x="132" y="90" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="133" sizeVersion="0">paint-neighbors6</button>
<chooser x="132" y="158" height="45" variable="points" current="0" display="points" width="138" sizeVersion="0">
<choice type="string" value="corners"></choice>
</chooser>
<button x="10" y="124" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="120">paint-in-radius</button>
<button x="10" y="124" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="120" sizeVersion="0">paint-in-radius</button>
</widgets>
<info><![CDATA[## WHAT IS IT?

Expand Down
12 changes: 6 additions & 6 deletions 3D/Code Examples/Network Example 3D.nlogox3d
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ end
; To the extent possible under law, Uri Wilensky has waived all
; copyright and related or neighboring rights to this model.]]></code>
<widgets>
<view3d wrappingAllowedZ="true" x="0" maxPycor="20" updateMode="1" wrappingAllowedX="true" y="0" frameRate="30.0" maxPzcor="20" minPycor="-20" height="436" showTickCounter="true" patchSize="10.0" fontSize="10" wrappingAllowedY="true" width="416" tickCounterLabel="ticks" maxPxcor="20" minPxcor="-20" minPzcor="-20"></view3d>
<button x="100" y="112" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="77">go</button>
<slider x="9" step="1" y="75" height="33" min="0" direction="Horizontal" max="100" default="30.0" variable="number-of-nodes" width="179" sizeVersion="0" display="number-of-nodes"></slider>
<button x="22" y="112" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="77">setup</button>
<slider x="8" step="1" y="150" height="33" min="0" direction="Horizontal" max="100" default="20.0" variable="number-of-edges" width="179" sizeVersion="0" display="number-of-edges"></slider>
<button x="27" y="187" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="141">wiggle-nodes</button>
<view3d wrappingAllowedZ="true" x="0" wrappingAllowedX="true" y="0" minPycor="-20" height="436" showTickCounter="true" patchSize="10.0" fontSize="10" wrappingAllowedY="true" width="416" tickCounterLabel="ticks" maxPycor="20" updateMode="1" frameRate="30.0" maxPzcor="20" maxPxcor="20" minPxcor="-20" minPzcor="-20"></view3d>
<button x="100" y="112" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="77" sizeVersion="0">go</button>
<slider x="9" step="1" y="75" max="100" display="number-of-nodes" height="33" min="0" direction="Horizontal" default="30.0" variable="number-of-nodes" width="179" sizeVersion="0"></slider>
<button x="22" y="112" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="77" sizeVersion="0">setup</button>
<slider x="8" step="1" y="150" max="100" display="number-of-edges" height="33" min="0" direction="Horizontal" default="20.0" variable="number-of-edges" width="179" sizeVersion="0"></slider>
<button x="27" y="187" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="141" sizeVersion="0">wiggle-nodes</button>
</widgets>
<info><![CDATA[## WHAT IS IT?

Expand Down
20 changes: 10 additions & 10 deletions 3D/Code Examples/Shapes Example 3D.nlogox3d
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ end
; To the extent possible under law, Uri Wilensky has waived all
; copyright and related or neighboring rights to this model.]]></code>
<widgets>
<view3d wrappingAllowedZ="true" x="0" maxPycor="16" updateMode="0" wrappingAllowedX="true" y="0" frameRate="30.0" maxPzcor="2" minPycor="-16" height="422" showTickCounter="false" patchSize="12.0" fontSize="10" wrappingAllowedY="true" width="498" tickCounterLabel="ticks" maxPxcor="20" minPxcor="-20" minPzcor="-2"></view3d>
<button x="105" y="45" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="82">setup
<view3d wrappingAllowedZ="true" x="0" wrappingAllowedX="true" y="0" minPycor="-16" height="422" showTickCounter="false" patchSize="12.0" fontSize="10" wrappingAllowedY="true" width="498" tickCounterLabel="ticks" maxPycor="16" updateMode="0" frameRate="30.0" maxPzcor="2" maxPxcor="20" minPxcor="-20" minPzcor="-2"></view3d>
<button x="105" y="45" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="82" sizeVersion="0">setup
</button>
<button x="32" y="160" height="33" disableUntilTicks="false" forever="true" kind="Turtle" width="112">roll-right 0.1</button>
<button x="71" y="204" height="33" disableUntilTicks="false" forever="true" kind="Turtle" width="166">set size size + 0.0001</button>
<button x="71" y="238" height="33" disableUntilTicks="false" forever="true" kind="Turtle" width="166">set size size - 0.0001</button>
<button x="147" y="93" height="33" disableUntilTicks="false" forever="false" kind="Turtle" width="107">set color red</button>
<button x="147" y="127" height="33" disableUntilTicks="false" forever="false" kind="Turtle" width="107">set color green</button>
<button x="147" y="161" height="33" disableUntilTicks="false" forever="false" kind="Turtle" width="107">set color white</button>
<button x="32" y="92" height="33" disableUntilTicks="false" forever="true" kind="Turtle" width="108">right 0.1</button>
<button x="32" y="126" height="33" disableUntilTicks="false" forever="true" kind="Turtle" width="108">tilt-up 0.1</button>
<button x="32" y="160" height="33" disableUntilTicks="false" forever="true" kind="Turtle" width="112" sizeVersion="0">roll-right 0.1</button>
<button x="71" y="204" height="33" disableUntilTicks="false" forever="true" kind="Turtle" width="166" sizeVersion="0">set size size + 0.0001</button>
<button x="71" y="238" height="33" disableUntilTicks="false" forever="true" kind="Turtle" width="166" sizeVersion="0">set size size - 0.0001</button>
<button x="147" y="93" height="33" disableUntilTicks="false" forever="false" kind="Turtle" width="107" sizeVersion="0">set color red</button>
<button x="147" y="127" height="33" disableUntilTicks="false" forever="false" kind="Turtle" width="107" sizeVersion="0">set color green</button>
<button x="147" y="161" height="33" disableUntilTicks="false" forever="false" kind="Turtle" width="107" sizeVersion="0">set color white</button>
<button x="32" y="92" height="33" disableUntilTicks="false" forever="true" kind="Turtle" width="108" sizeVersion="0">right 0.1</button>
<button x="32" y="126" height="33" disableUntilTicks="false" forever="true" kind="Turtle" width="108" sizeVersion="0">tilt-up 0.1</button>
</widgets>
<info><![CDATA[## WHAT IS IT?

Expand Down
14 changes: 7 additions & 7 deletions 3D/Code Examples/Spherical Path Example 3D.nlogox3d
Original file line number Diff line number Diff line change
Expand Up @@ -69,25 +69,25 @@ end
; To the extent possible under law, Uri Wilensky has waived all
; copyright and related or neighboring rights to this model.</code>
<widgets>
<view3d wrappingAllowedZ="true" x="0" maxPycor="16" updateMode="1" wrappingAllowedX="true" y="0" frameRate="30.0" maxPzcor="16" minPycor="-16" height="455" showTickCounter="false" patchSize="13.0" fontSize="10" wrappingAllowedY="true" width="435" tickCounterLabel="ticks" maxPxcor="16" minPxcor="-16" minPzcor="-16"></view3d>
<chooser x="35" y="120" height="45" variable="step-size" current="1" width="175" sizeVersion="0" display="step-size">
<view3d wrappingAllowedZ="true" x="0" wrappingAllowedX="true" y="0" minPycor="-16" height="455" showTickCounter="false" patchSize="13.0" fontSize="10" wrappingAllowedY="true" width="435" tickCounterLabel="ticks" maxPycor="16" updateMode="1" frameRate="30.0" maxPzcor="16" maxPxcor="16" minPxcor="-16" minPzcor="-16"></view3d>
<chooser x="35" y="120" height="45" variable="step-size" current="1" display="step-size" width="175" sizeVersion="0">
<choice type="double" value="10.0"></choice>
<choice type="double" value="1.0"></choice>
<choice type="double" value="0.1"></choice>
<choice type="double" value="0.001"></choice>
</chooser>
<chooser x="35" y="235" height="45" variable="arc-angle" current="2" width="175" sizeVersion="0" display="arc-angle">
<chooser x="35" y="235" height="45" variable="arc-angle" current="2" display="arc-angle" width="175" sizeVersion="0">
<choice type="double" value="1.0"></choice>
<choice type="double" value="5.0"></choice>
<choice type="double" value="10.0"></choice>
<choice type="double" value="36.0"></choice>
<choice type="double" value="45.0"></choice>
<choice type="double" value="90.0"></choice>
</chooser>
<button x="35" y="170" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="175">go-distance</button>
<button x="35" y="285" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="175">go-angle</button>
<button x="35" y="29" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="175">setup</button>
<slider x="35" step="1" y="65" height="33" min="0" direction="Horizontal" max="360" default="0.0" variable="wiggle-range" units="degrees" width="175" sizeVersion="0" display="wiggle-range"></slider>
<button x="35" y="170" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="175" sizeVersion="0">go-distance</button>
<button x="35" y="285" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="175" sizeVersion="0">go-angle</button>
<button x="35" y="29" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="175" sizeVersion="0">setup</button>
<slider x="35" step="1" y="65" max="360" display="wiggle-range" height="33" min="0" direction="Horizontal" default="0.0" variable="wiggle-range" units="degrees" width="175" sizeVersion="0"></slider>
</widgets>
<info><![CDATA[## WHAT IS IT?

Expand Down
6 changes: 3 additions & 3 deletions 3D/Code Examples/Three Loops Example 3D.nlogox3d
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ end
; To the extent possible under law, Uri Wilensky has waived all
; copyright and related or neighboring rights to this model.</code>
<widgets>
<view3d wrappingAllowedZ="true" x="0" maxPycor="9" updateMode="1" wrappingAllowedX="true" y="0" frameRate="30.0" maxPzcor="9" minPycor="-9" height="254" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="true" width="241" tickCounterLabel="ticks" maxPxcor="9" minPxcor="-9" minPzcor="-9"></view3d>
<button x="50" y="57" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="63">setup</button>
<button x="50" y="99" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="63">go</button>
<view3d wrappingAllowedZ="true" x="0" wrappingAllowedX="true" y="0" minPycor="-9" height="254" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="true" width="241" tickCounterLabel="ticks" maxPycor="9" updateMode="1" frameRate="30.0" maxPzcor="9" maxPxcor="9" minPxcor="-9" minPzcor="-9"></view3d>
<button x="50" y="57" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="63" sizeVersion="0">setup</button>
<button x="50" y="99" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="63" sizeVersion="0">go</button>
</widgets>
<info><![CDATA[## WHAT IS IT?

Expand Down
Loading
Loading