Skip to content

Commit 1ea95cd

Browse files
committed
Update interface for 6 models
1 parent 21e1804 commit 1ea95cd

6 files changed

Lines changed: 99 additions & 99 deletions

File tree

Sample Models/Art/Fireworks.nlogox

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,16 @@ end
108108
; Copyright 1998 Uri Wilensky.
109109
; See Info tab for full copyright and license.]]></code>
110110
<widgets>
111-
<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>
112-
<button x="9" y="38" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="setup" width="80" sizeVersion="0">setup</button>
113-
<button x="9" y="88" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="go" width="80" sizeVersion="0">go</button>
114-
<switch x="4" y="138" height="33" on="true" variable="trails?" display="trails?" width="90" sizeVersion="0"></switch>
115-
<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>
116-
<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>
117-
<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>
118-
<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>
119-
<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>
120-
<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>
111+
<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>
112+
<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>
113+
<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>
114+
<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>
115+
<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>
116+
<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>
117+
<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>
118+
<switch x="9" y="141" height="40" on="false" variable="trails?" width="80" display="trails?"></switch>
119+
<button x="9" y="38" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="80" display="setup">setup</button>
120+
<button x="9" y="90" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="80" display="go">go</button>
121121
</widgets>
122122
<info><![CDATA[## WHAT IS IT?
123123

Sample Models/Art/Geometron Top-Down.nlogox

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -324,29 +324,29 @@ end
324324
; Copyright 1998 Uri Wilensky.
325325
; See Info tab for full copyright and license.]]></code>
326326
<widgets>
327-
<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>
328-
<button x="23" y="38" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="setup" width="90" sizeVersion="0">setup</button>
329-
<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>
330-
<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>
331-
<button x="23" y="158" height="33" disableUntilTicks="false" forever="true" kind="Observer" display="color-shift" width="90" sizeVersion="0">color-shift</button>
332-
<button x="23" y="278" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="lift-pen" width="90" sizeVersion="0">lift-pen</button>
333-
<switch x="8" y="318" height="33" on="false" variable="follow-turtle?" display="follow-turtle?" width="137" sizeVersion="0"></switch>
334-
<button x="23" y="358" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="restore" width="90" sizeVersion="0">restore</button>
335-
<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>
336-
<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>
337-
<button x="150" y="123" height="43" disableUntilTicks="true" forever="true" kind="Turtle" display="pattern 1" width="81" sizeVersion="0">pattern-1</button>
338-
<button x="232" y="123" height="43" disableUntilTicks="true" forever="true" kind="Turtle" display="pattern 2" width="81" sizeVersion="0">pattern-2</button>
339-
<button x="150" y="167" height="44" disableUntilTicks="true" forever="true" kind="Turtle" display="pattern 3" width="81" sizeVersion="0">pattern-3</button>
340-
<button x="232" y="167" height="44" disableUntilTicks="true" forever="true" kind="Turtle" display="pattern 4" width="81" sizeVersion="0">pattern-4</button>
341-
<button x="150" y="212" height="43" disableUntilTicks="true" forever="true" kind="Turtle" display="pattern 5" width="81" sizeVersion="0">pattern-5</button>
342-
<button x="232" y="212" height="43" disableUntilTicks="true" forever="true" kind="Turtle" display="pattern 6" width="81" sizeVersion="0">pattern-6</button>
343-
<monitor x="167" precision="3" y="268" height="45" fontSize="11" display="curr-color-sep" width="130" sizeVersion="0">current-color-sep</monitor>
344-
<monitor x="167" precision="3" y="328" height="45" fontSize="11" width="130" sizeVersion="0">count turtles</monitor>
345-
<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>
346-
<chooser x="22" y="197" height="45" variable="shift-direction" current="0" display="shift-direction" width="92" sizeVersion="0">
327+
<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>
328+
<button x="493" y="212" height="44" disableUntilTicks="true" forever="true" kind="Turtle" width="97" display="pattern 4">pattern-4</button>
329+
<button x="95" y="427" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="90" display="restore">restore</button>
330+
<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>
331+
<button x="95" y="45" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="90" display="setup">setup</button>
332+
<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>
333+
<chooser x="15" y="247" height="60" variable="shift-direction" current="0" width="250" display="shift-direction">
347334
<choice type="string" value="increment"></choice>
348335
<choice type="string" value="decrement"></choice>
349336
</chooser>
337+
<button x="95" y="204" height="35" disableUntilTicks="false" forever="true" kind="Observer" width="90" display="color-shift">color-shift</button>
338+
<button x="493" y="265" height="43" disableUntilTicks="true" forever="true" kind="Turtle" width="97" display="pattern 6">pattern-6</button>
339+
<button x="340" y="265" height="43" disableUntilTicks="true" forever="true" kind="Turtle" width="97" display="pattern 5">pattern-5</button>
340+
<button x="340" y="160" height="43" disableUntilTicks="true" forever="true" kind="Turtle" width="97" display="pattern 1">pattern-1</button>
341+
<button x="493" y="160" height="43" disableUntilTicks="true" forever="true" kind="Turtle" width="97" display="pattern 2">pattern-2</button>
342+
<button x="340" y="212" height="44" disableUntilTicks="true" forever="true" kind="Turtle" width="97" display="pattern 3">pattern-3</button>
343+
<button x="95" y="341" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="90" display="lift-pen">lift-pen</button>
344+
<switch x="72" y="383" height="37" on="false" variable="follow-turtle?" width="137" display="follow-turtle?"></switch>
345+
<monitor x="378" precision="3" y="341" height="60" fontSize="11" width="130" display="curr-color-sep">current-color-sep</monitor>
346+
<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>
347+
<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>
348+
<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>
349+
<monitor x="384" precision="3" y="415" height="60" fontSize="11" width="130">count turtles</monitor>
350350
</widgets>
351351
<info><![CDATA[## WHAT IS IT?
352352

Sample Models/Biology/Chloroplasts and Food.nlogox

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -534,17 +534,19 @@ end
534534
; Copyright 2016 Uri Wilensky.
535535
; See Info tab for full copyright and license.]]></code>
536536
<widgets>
537-
<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>
538-
<button x="5" y="10" height="35" disableUntilTicks="false" forever="false" kind="Observer" display="setup/reset" width="110" sizeVersion="0">setup</button>
539-
<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>
540-
<button x="120" y="10" height="35" disableUntilTicks="true" forever="true" kind="Observer" display="go/pause" width="110" sizeVersion="0">go</button>
541-
<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>
542-
<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>
543-
<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>
544-
<monitor x="200" precision="17" y="90" height="37" fontSize="9" display="carbon dioxide molecules" width="145" sizeVersion="0">#-co2-molecules</monitor>
545-
<monitor x="200" precision="17" y="130" height="37" fontSize="9" display="oxygen molecules" width="145" sizeVersion="0">#-o2-molecules</monitor>
546-
<monitor x="200" precision="17" y="170" height="37" fontSize="9" display="sugar molecules produced" width="144" sizeVersion="0">#-glucose-molecules-produced</monitor>
547-
<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">
537+
<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>
538+
<button x="5" y="10" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="110" display="setup/reset">setup</button>
539+
<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>
540+
<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>
541+
<monitor x="295" precision="17" y="237" height="60" fontSize="9" width="215" display="sugar molecules produced">#-glucose-molecules-produced</monitor>
542+
<monitor x="295" precision="17" y="174" height="60" fontSize="9" width="215" display="oxygen molecules">#-o2-molecules</monitor>
543+
<button x="145" y="10" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="110" display="go/pause">go</button>
544+
<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>
545+
<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>
546+
<monitor x="295" precision="17" y="111" height="60" fontSize="9" width="215" display="carbon dioxide molecules">#-co2-molecules</monitor>
547+
<switch x="295" y="10" height="37" on="false" variable="auto-stop?" width="110" display="auto-stop?"></switch>
548+
<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>
549+
<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">
548550
<setup></setup>
549551
<update></update>
550552
<pen interval="1.0" mode="0" display="CO2" color="-16777216" legend="true">
@@ -560,8 +562,6 @@ end
560562
<update>plotxy ticks #-glucose-molecules-produced</update>
561563
</pen>
562564
</plot>
563-
<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>
564-
<switch x="235" y="10" height="33" on="false" variable="auto-stop?" display="auto-stop?" width="110" sizeVersion="0"></switch>
565565
</widgets>
566566
<info><![CDATA[## WHAT IS IT?
567567

0 commit comments

Comments
 (0)