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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions Sample Models/Art/Fireworks.nlogox
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,16 @@ end
; Copyright 1998 Uri Wilensky.
; See Info tab for full copyright and license.]]></code>
<widgets>
<view x="244" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-90" height="547" showTickCounter="true" patchSize="3.0" fontSize="10" wrappingAllowedY="false" width="547" tickCounterLabel="ticks" maxPycor="90" updateMode="1" maxPxcor="90" minPxcor="-90"></view>
<button x="9" y="38" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="setup" width="80" sizeVersion="0">setup</button>
<button x="9" y="88" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="go" width="80" sizeVersion="0">go</button>
<switch x="4" y="138" height="33" on="true" variable="trails?" display="trails?" width="90" sizeVersion="0"></switch>
<slider x="112" step="1" y="38" max="40" display="max-fireworks" height="33" min="1" direction="Horizontal" default="20.0" variable="max-fireworks" width="120" sizeVersion="0"></slider>
<slider x="112" step="1" y="88" max="50" display="fragments" height="33" min="5" direction="Horizontal" default="30.0" variable="fragments" width="120" sizeVersion="0"></slider>
<slider x="112" step="0.1" y="138" max="5.0" display="initial-x-vel" height="33" min="0.0" direction="Horizontal" default="2.0" variable="initial-x-vel" width="120" sizeVersion="0"></slider>
<slider x="112" step="0.1" y="188" max="5.0" display="initial-y-vel" height="33" min="0.0" direction="Horizontal" default="2.0" variable="initial-y-vel" width="120" sizeVersion="0"></slider>
<slider x="112" step="0.1" y="238" max="3.0" display="gravity" height="33" min="0.0" direction="Horizontal" default="0.5" variable="gravity" width="120" sizeVersion="0"></slider>
<slider x="112" step="0.1" y="288" max="10.0" display="fade-amount" height="33" min="0.0" direction="Horizontal" default="1.5" variable="fade-amount" width="120" sizeVersion="0"></slider>
<view x="430" wrappingAllowedX="true" y="14" frameRate="30.0" minPycor="-90" height="547" showTickCounter="true" patchSize="3.0" fontSize="10" wrappingAllowedY="false" width="547" tickCounterLabel="ticks" maxPycor="90" updateMode="1" maxPxcor="90" minPxcor="-90"></view>
<slider x="112" step="1" y="38" max="40" width="250" display="max-fireworks" height="50" min="1" direction="Horizontal" default="20.0" variable="max-fireworks"></slider>
<slider x="112" step="1" y="105" max="50" width="250" display="fragments" height="50" min="5" direction="Horizontal" default="30.0" variable="fragments"></slider>
<slider x="112" step="0.1" y="172" max="5.0" width="250" display="initial-x-vel" height="50" min="0.0" direction="Horizontal" default="2.0" variable="initial-x-vel"></slider>
<slider x="112" step="0.1" y="239" max="5.0" width="250" display="initial-y-vel" height="50" min="0.0" direction="Horizontal" default="2.0" variable="initial-y-vel"></slider>
<slider x="112" step="0.1" y="306" max="3.0" width="250" display="gravity" height="50" min="0.0" direction="Horizontal" default="0.5" variable="gravity"></slider>
<slider x="112" step="0.1" y="373" max="10.0" width="250" display="fade-amount" height="50" min="0.0" direction="Horizontal" default="1.5" variable="fade-amount"></slider>
<switch x="9" y="141" height="40" on="false" variable="trails?" width="80" display="trails?"></switch>
<button x="9" y="38" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="80" display="setup">setup</button>
<button x="9" y="90" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="80" display="go">go</button>
</widgets>
<info><![CDATA[## WHAT IS IT?

Expand Down
40 changes: 20 additions & 20 deletions Sample Models/Art/Geometron Top-Down.nlogox
Original file line number Diff line number Diff line change
Expand Up @@ -324,29 +324,29 @@ end
; Copyright 1998 Uri Wilensky.
; See Info tab for full copyright and license.]]></code>
<widgets>
<view x="321" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-125" height="506" showTickCounter="false" patchSize="2.0" fontSize="10" wrappingAllowedY="false" width="506" tickCounterLabel="ticks" maxPycor="125" updateMode="0" maxPxcor="125" minPxcor="-125"></view>
<button x="23" y="38" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="setup" width="90" sizeVersion="0">setup</button>
<slider x="3" step="1" y="78" max="36" display="num-turtles" height="33" min="1" direction="Horizontal" default="10.0" variable="num-turtles" width="130" sizeVersion="0"></slider>
<slider x="3" step="0.1" y="118" max="30.0" display="color-sep" height="33" min="0.1" direction="Horizontal" default="2.0" variable="color-sep" width="130" sizeVersion="0"></slider>
<button x="23" y="158" height="33" disableUntilTicks="false" forever="true" kind="Observer" display="color-shift" width="90" sizeVersion="0">color-shift</button>
<button x="23" y="278" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="lift-pen" width="90" sizeVersion="0">lift-pen</button>
<switch x="8" y="318" height="33" on="false" variable="follow-turtle?" display="follow-turtle?" width="137" sizeVersion="0"></switch>
<button x="23" y="358" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="restore" width="90" sizeVersion="0">restore</button>
<slider x="167" step="1.0" y="38" max="90.0" display="expander" height="33" min="0.0" direction="Horizontal" default="90.0" variable="expander" width="130" sizeVersion="0"></slider>
<slider x="167" step="0.1" y="78" max="10.0" display="direction" height="33" min="0.0" direction="Horizontal" default="10.0" variable="direction" width="130" sizeVersion="0"></slider>
<button x="150" y="123" height="43" disableUntilTicks="true" forever="true" kind="Turtle" display="pattern 1" width="81" sizeVersion="0">pattern-1</button>
<button x="232" y="123" height="43" disableUntilTicks="true" forever="true" kind="Turtle" display="pattern 2" width="81" sizeVersion="0">pattern-2</button>
<button x="150" y="167" height="44" disableUntilTicks="true" forever="true" kind="Turtle" display="pattern 3" width="81" sizeVersion="0">pattern-3</button>
<button x="232" y="167" height="44" disableUntilTicks="true" forever="true" kind="Turtle" display="pattern 4" width="81" sizeVersion="0">pattern-4</button>
<button x="150" y="212" height="43" disableUntilTicks="true" forever="true" kind="Turtle" display="pattern 5" width="81" sizeVersion="0">pattern-5</button>
<button x="232" y="212" height="43" disableUntilTicks="true" forever="true" kind="Turtle" display="pattern 6" width="81" sizeVersion="0">pattern-6</button>
<monitor x="167" precision="3" y="268" height="45" fontSize="11" display="curr-color-sep" width="130" sizeVersion="0">current-color-sep</monitor>
<monitor x="167" precision="3" y="328" height="45" fontSize="11" width="130" sizeVersion="0">count turtles</monitor>
<slider x="167" step="256" y="398" max="8192" display="max-num" height="33" min="256" direction="Horizontal" default="4096.0" variable="max-num" width="130" sizeVersion="0"></slider>
<chooser x="22" y="197" height="45" variable="shift-direction" current="0" display="shift-direction" width="92" sizeVersion="0">
<view x="635" wrappingAllowedX="false" y="25" frameRate="30.0" minPycor="-125" height="506" showTickCounter="false" patchSize="2.0" fontSize="10" wrappingAllowedY="false" width="506" tickCounterLabel="ticks" maxPycor="125" updateMode="0" maxPxcor="125" minPxcor="-125"></view>
<button x="493" y="212" height="44" disableUntilTicks="true" forever="true" kind="Turtle" width="97" display="pattern 4">pattern-4</button>
<button x="95" y="427" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="90" display="restore">restore</button>
<slider x="15" step="0.1" y="146" max="30.0" width="250" display="color-sep" height="50" min="0.1" direction="Horizontal" default="2.0" variable="color-sep"></slider>
<button x="95" y="45" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="90" display="setup">setup</button>
<slider x="15" step="1" y="88" max="36" width="250" display="num-turtles" height="50" min="1" direction="Horizontal" default="10.0" variable="num-turtles"></slider>
<chooser x="15" y="247" height="60" variable="shift-direction" current="0" width="250" display="shift-direction">
<choice type="string" value="increment"></choice>
<choice type="string" value="decrement"></choice>
</chooser>
<button x="95" y="204" height="35" disableUntilTicks="false" forever="true" kind="Observer" width="90" display="color-shift">color-shift</button>
<button x="493" y="265" height="43" disableUntilTicks="true" forever="true" kind="Turtle" width="97" display="pattern 6">pattern-6</button>
<button x="340" y="265" height="43" disableUntilTicks="true" forever="true" kind="Turtle" width="97" display="pattern 5">pattern-5</button>
<button x="340" y="160" height="43" disableUntilTicks="true" forever="true" kind="Turtle" width="97" display="pattern 1">pattern-1</button>
<button x="493" y="160" height="43" disableUntilTicks="true" forever="true" kind="Turtle" width="97" display="pattern 2">pattern-2</button>
<button x="340" y="212" height="44" disableUntilTicks="true" forever="true" kind="Turtle" width="97" display="pattern 3">pattern-3</button>
<button x="95" y="341" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="90" display="lift-pen">lift-pen</button>
<switch x="72" y="383" height="37" on="false" variable="follow-turtle?" width="137" display="follow-turtle?"></switch>
<monitor x="378" precision="3" y="341" height="60" fontSize="11" width="130" display="curr-color-sep">current-color-sep</monitor>
<slider x="324" step="1.0" y="45" max="90.0" width="250" display="expander" height="50" min="0.0" direction="Horizontal" default="90.0" variable="expander"></slider>
<slider x="324" step="0.1" y="102" max="10.0" width="250" display="direction" height="50" min="0.0" direction="Horizontal" default="10.0" variable="direction"></slider>
<slider x="324" step="256" y="490" max="8192" width="250" display="max-num" height="50" min="256" direction="Horizontal" default="4096.0" variable="max-num"></slider>
<monitor x="384" precision="3" y="415" height="60" fontSize="11" width="130">count turtles</monitor>
</widgets>
<info><![CDATA[## WHAT IS IT?

Expand Down
26 changes: 13 additions & 13 deletions Sample Models/Biology/Chloroplasts and Food.nlogox
Original file line number Diff line number Diff line change
Expand Up @@ -534,17 +534,19 @@ end
; Copyright 2016 Uri Wilensky.
; See Info tab for full copyright and license.]]></code>
<widgets>
<view x="350" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-9" height="403" showTickCounter="true" patchSize="21.0" fontSize="14" wrappingAllowedY="true" width="592" tickCounterLabel="ticks" maxPycor="9" updateMode="1" maxPxcor="18" minPxcor="-9"></view>
<button x="5" y="10" height="35" disableUntilTicks="false" forever="false" kind="Observer" display="setup/reset" width="110" sizeVersion="0">setup</button>
<slider x="5" step="1" y="90" max="200" display="initial-carbon-dioxide" height="33" min="0" direction="Horizontal" default="100.0" variable="initial-carbon-dioxide" width="190" sizeVersion="0"></slider>
<button x="120" y="10" height="35" disableUntilTicks="true" forever="true" kind="Observer" display="go/pause" width="110" sizeVersion="0">go</button>
<slider x="5" step="1" y="130" max="50" display="waterflow-through-leaf" height="33" min="0" direction="Horizontal" default="25.0" variable="waterflow-through-leaf" width="190" sizeVersion="0"></slider>
<slider x="5" step="1" y="170" max="100" display="intensity-of-light" height="33" min="0" direction="Horizontal" default="50.0" variable="intensity-of-light" width="190" sizeVersion="0"></slider>
<slider x="5" step="1" y="50" max="6" display="initial-#-of-chloroplasts" height="33" min="0" direction="Horizontal" default="3.0" variable="initial-#-of-chloroplasts" width="180" sizeVersion="0"></slider>
<monitor x="200" precision="17" y="90" height="37" fontSize="9" display="carbon dioxide molecules" width="145" sizeVersion="0">#-co2-molecules</monitor>
<monitor x="200" precision="17" y="130" height="37" fontSize="9" display="oxygen molecules" width="145" sizeVersion="0">#-o2-molecules</monitor>
<monitor x="200" precision="17" y="170" height="37" fontSize="9" display="sugar molecules produced" width="144" sizeVersion="0">#-glucose-molecules-produced</monitor>
<plot x="5" autoPlotX="true" yMax="100.0" autoPlotY="true" y="215" xMin="0.0" height="202" legend="true" xMax="2000.0" yMin="0.0" xAxis="time" display="Number of molecules" width="340" sizeVersion="0">
<view x="555" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-9" height="403" showTickCounter="true" patchSize="21.0" fontSize="14" wrappingAllowedY="true" width="592" tickCounterLabel="ticks" maxPycor="9" updateMode="1" maxPxcor="18" minPxcor="-9"></view>
<button x="5" y="10" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="110" display="setup/reset">setup</button>
<slider x="5" step="1" y="182" max="50" width="250" display="waterflow-through-leaf" height="50" min="0" direction="Horizontal" default="25.0" variable="waterflow-through-leaf"></slider>
<slider x="5" step="1" y="246" max="100" width="250" display="intensity-of-light" height="50" min="0" direction="Horizontal" default="50.0" variable="intensity-of-light"></slider>
<monitor x="295" precision="17" y="237" height="60" fontSize="9" width="215" display="sugar molecules produced">#-glucose-molecules-produced</monitor>
<monitor x="295" precision="17" y="174" height="60" fontSize="9" width="215" display="oxygen molecules">#-o2-molecules</monitor>
<button x="145" y="10" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="110" display="go/pause">go</button>
<slider x="5" step="1" y="54" max="6" width="250" display="initial-#-of-chloroplasts" height="50" min="0" direction="Horizontal" default="3.0" variable="initial-#-of-chloroplasts"></slider>
<slider x="5" step="1" y="118" max="200" width="250" display="initial-carbon-dioxide" height="50" min="0" direction="Horizontal" default="100.0" variable="initial-carbon-dioxide"></slider>
<monitor x="295" precision="17" y="111" height="60" fontSize="9" width="215" display="carbon dioxide molecules">#-co2-molecules</monitor>
<switch x="295" y="10" height="37" on="false" variable="auto-stop?" width="110" display="auto-stop?"></switch>
<slider x="295" step="100" y="54" max="5000" width="215" display="stop-at" height="50" min="100" direction="Horizontal" default="2000.0" variable="stop-at" units="ticks"></slider>
<plot x="50" autoPlotX="true" yMax="100.0" autoPlotY="true" y="335" xMin="0.0" height="225" legend="true" xMax="2000.0" yMin="0.0" width="410" xAxis="time" display="Number of molecules">
<setup></setup>
<update></update>
<pen interval="1.0" mode="0" display="CO2" color="-16777216" legend="true">
Expand All @@ -560,8 +562,6 @@ end
<update>plotxy ticks #-glucose-molecules-produced</update>
</pen>
</plot>
<slider x="190" step="100" y="50" max="5000" display="stop-at" height="33" min="100" direction="Horizontal" default="2000.0" variable="stop-at" units="ticks" width="155" sizeVersion="0"></slider>
<switch x="235" y="10" height="33" on="false" variable="auto-stop?" display="auto-stop?" width="110" sizeVersion="0"></switch>
</widgets>
<info><![CDATA[## WHAT IS IT?

Expand Down
Loading
Loading