Skip to content

Commit ec683fd

Browse files
committed
Convert Perspective Demos to new sizes
1 parent d978757 commit ec683fd

4 files changed

Lines changed: 65 additions & 65 deletions

File tree

Code Examples/Perspective Demos/Ants (Perspective Demo).nlogox

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -147,24 +147,24 @@ end
147147
; See Info tab for full copyright and license.]]></code>
148148
<widgets>
149149
<view x="257" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-35" height="501" showTickCounter="true" patchSize="7.0" fontSize="10" wrappingAllowedY="false" width="501" tickCounterLabel="ticks" maxPycor="35" updateMode="1" maxPxcor="35" minPxcor="-35"></view>
150-
<button x="41" y="135" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="68" sizeVersion="0">setup</button>
151-
<slider x="30" step="1" y="466" max="99" display="diffusion-rate" height="33" min="0" direction="Horizontal" default="50.0" variable="diffusion-rate" width="179" sizeVersion="0"></slider>
152-
<slider x="30" step="1" y="507" max="99" display="evaporation-rate" height="33" min="0" direction="Horizontal" default="14.0" variable="evaporation-rate" width="179" sizeVersion="0"></slider>
153-
<button x="114" y="135" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="70" sizeVersion="0">go</button>
154-
<slider x="22" step="1" y="90" max="200" display="population" height="33" min="0" direction="Horizontal" default="150.0" variable="population" width="179" sizeVersion="0"></slider>
155-
<button x="7" y="202" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="212" sizeVersion="0">watch one-of turtles</button>
156-
<button x="7" y="241" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="213" sizeVersion="0">follow one-of turtles</button>
157-
<note x="12" y="17" height="60" textColorLight="-16777216" fontSize="11" width="238" markdown="false">This is a version of the Ants model,
150+
<button x="41" y="152" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="68">setup</button>
151+
<slider x="30" step="1" y="540" max="99" width="179" display="diffusion-rate" height="50" min="0" direction="Horizontal" default="50.0" variable="diffusion-rate"></slider>
152+
<slider x="30" step="1" y="598" max="99" width="179" display="evaporation-rate" height="50" min="0" direction="Horizontal" default="14.0" variable="evaporation-rate"></slider>
153+
<button x="114" y="152" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="70">go</button>
154+
<slider x="22" step="1" y="90" max="200" width="179" display="population" height="50" min="0" direction="Horizontal" default="150.0" variable="population"></slider>
155+
<button x="7" y="226" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="212">watch one-of turtles</button>
156+
<button x="7" y="272" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="213">follow one-of turtles</button>
157+
<note x="12" y="17" backgroundDark="0" fontSize="11" width="238" markdown="false" height="60" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">This is a version of the Ants model,
158158
modified to show off NetLogo's
159159
perspective features. Try it in both
160160
2D and 3D.</note>
161-
<button x="51" y="375" height="33" disableUntilTicks="false" forever="false" kind="Turtle" width="76" sizeVersion="0">pen-down</button>
162-
<button x="128" y="375" height="33" disableUntilTicks="false" forever="false" kind="Turtle" width="82" sizeVersion="0">pen-up</button>
163-
<monitor x="151" precision="3" y="281" height="45" fontSize="11" width="102" sizeVersion="0">subject</monitor>
164-
<button x="51" y="415" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="129" sizeVersion="0">clear-drawing</button>
165-
<button x="50" y="337" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="subject pen-down" width="159" sizeVersion="0">if subject != nobody
161+
<button x="51" y="435" height="40" disableUntilTicks="false" forever="false" kind="Turtle" width="76">pen-down</button>
162+
<button x="128" y="435" height="40" disableUntilTicks="false" forever="false" kind="Turtle" width="82">pen-up</button>
163+
<monitor x="151" precision="3" y="319" height="60" fontSize="11" width="102">subject</monitor>
164+
<button x="51" y="482" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="129">clear-drawing</button>
165+
<button x="50" y="390" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="159" display="subject pen-down">if subject != nobody
166166
[ ask subject [ pen-down ] ]</button>
167-
<button x="7" y="281" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="141" sizeVersion="0">reset-perspective</button>
167+
<button x="7" y="319" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="141">reset-perspective</button>
168168
</widgets>
169169
<info><![CDATA[## WHAT IS IT?
170170

Code Examples/Perspective Demos/Flocking (Perspective Demo).nlogox

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -108,26 +108,26 @@ end
108108
; See Info tab for full copyright and license.]]></code>
109109
<widgets>
110110
<view x="250" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-45" height="550" showTickCounter="true" patchSize="6.0" fontSize="10" wrappingAllowedY="true" width="550" tickCounterLabel="ticks" maxPycor="45" updateMode="1" maxPxcor="45" minPxcor="-45"></view>
111-
<button x="9" y="122" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="76" sizeVersion="0">setup</button>
112-
<button x="90" y="122" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="81" sizeVersion="0">go</button>
113-
<slider x="8" step="1" y="84" max="1000" display="population" height="33" min="1" direction="Horizontal" default="200.0" variable="population" width="223" sizeVersion="0"></slider>
114-
<slider x="7" step="0.25" y="485" max="20" display="max-align-turn" height="33" min="0" direction="Horizontal" default="5.0" variable="max-align-turn" units="degrees" width="223" sizeVersion="0"></slider>
115-
<slider x="7" step="0.25" y="519" max="20" display="max-cohere-turn" height="33" min="0" direction="Horizontal" default="3.0" variable="max-cohere-turn" units="degrees" width="223" sizeVersion="0"></slider>
116-
<slider x="7" step="0.25" y="553" max="20" display="max-separate-turn" height="33" min="0" direction="Horizontal" default="1.5" variable="max-separate-turn" units="degrees" width="223" sizeVersion="0"></slider>
117-
<slider x="7" step="0.5" y="417" max="10" display="vision" height="33" min="0" direction="Horizontal" default="5.0" variable="vision" units="patches" width="223" sizeVersion="0"></slider>
118-
<slider x="7" step="0.25" y="451" max="5" display="minimum-separation" height="33" min="0" direction="Horizontal" default="1.0" variable="minimum-separation" units="patches" width="223" sizeVersion="0"></slider>
119-
<note x="10" y="13" height="56" textColorLight="-16777216" fontSize="11" width="234" markdown="false">This is a version of the Flocking model,
111+
<button x="9" y="139" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="76">setup</button>
112+
<button x="90" y="139" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="81">go</button>
113+
<slider x="8" step="1" y="84" max="1000" width="223" display="population" height="50" min="1" direction="Horizontal" default="200.0" variable="population"></slider>
114+
<slider x="7" step="0.25" y="603" max="20" width="223" display="max-align-turn" height="50" min="0" direction="Horizontal" default="5.0" variable="max-align-turn" units="degrees"></slider>
115+
<slider x="7" step="0.25" y="658" max="20" width="223" display="max-cohere-turn" height="50" min="0" direction="Horizontal" default="3.0" variable="max-cohere-turn" units="degrees"></slider>
116+
<slider x="7" step="0.25" y="713" max="20" width="223" display="max-separate-turn" height="50" min="0" direction="Horizontal" default="1.5" variable="max-separate-turn" units="degrees"></slider>
117+
<slider x="7" step="0.5" y="493" max="10" width="223" display="vision" height="50" min="0" direction="Horizontal" default="5.0" variable="vision" units="patches"></slider>
118+
<slider x="7" step="0.25" y="548" max="5" width="223" display="minimum-separation" height="50" min="0" direction="Horizontal" default="1.0" variable="minimum-separation" units="patches"></slider>
119+
<note x="10" y="13" backgroundDark="0" fontSize="11" width="234" markdown="false" height="56" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">This is a version of the Flocking model,
120120
modified to show off NetLogo's
121121
perspective features. Try it in both
122122
2D and 3D.
123123
</note>
124-
<button x="8" y="175" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="228" sizeVersion="0">watch one-of turtles</button>
125-
<button x="9" y="210" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="227" sizeVersion="0">follow one-of turtles</button>
126-
<button x="116" y="245" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="120" sizeVersion="0">reset-perspective</button>
127-
<button x="28" y="357" height="33" disableUntilTicks="false" forever="false" kind="Turtle" width="63" sizeVersion="0">pen-up</button>
128-
<button x="93" y="357" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="118" sizeVersion="0">clear-drawing</button>
129-
<monitor x="9" precision="3" y="245" height="45" fontSize="11" width="106" sizeVersion="0">subject</monitor>
130-
<button x="28" y="322" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="subject pen-down" width="183" sizeVersion="0">if subject != nobody
124+
<button x="8" y="199" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="228">watch one-of turtles</button>
125+
<button x="9" y="244" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="227">follow one-of turtles</button>
126+
<button x="116" y="289" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="120">reset-perspective</button>
127+
<button x="28" y="426" height="40" disableUntilTicks="false" forever="false" kind="Turtle" width="63">pen-up</button>
128+
<button x="93" y="426" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="118">clear-drawing</button>
129+
<monitor x="9" precision="3" y="289" height="60" fontSize="11" width="106">subject</monitor>
130+
<button x="28" y="381" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="183" display="subject pen-down">if subject != nobody
131131
[ ask subject [ pen-down ] ]</button>
132132
</widgets>
133133
<info><![CDATA[## WHAT IS IT?

Code Examples/Perspective Demos/GasLab Gas in a Box (Perspective Demo).nlogox

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -317,29 +317,29 @@ end
317317
; Copyright 1997 Uri Wilensky.
318318
; See Info tab for full copyright and license.]]></code>
319319
<widgets>
320-
<view x="329" wrappingAllowedX="false" y="11" frameRate="30.0" minPycor="-40" height="571" showTickCounter="true" patchSize="7.0" fontSize="18" wrappingAllowedY="false" width="571" tickCounterLabel="ticks" maxPycor="40" updateMode="1" maxPxcor="40" minPxcor="-40"></view>
321-
<button x="12" y="43" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="go/stop" width="86" sizeVersion="0">go</button>
322-
<button x="12" y="10" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="86" sizeVersion="0">setup</button>
323-
<slider x="100" step="1" y="10" max="1000" display="number-of-particles" height="33" min="1" direction="Horizontal" default="100.0" variable="number-of-particles" width="209" sizeVersion="0"></slider>
324-
<monitor x="13" precision="2" y="225" height="45" fontSize="11" display="average speed" width="119" sizeVersion="0">avg-speed</monitor>
325-
<monitor x="137" precision="2" y="225" height="45" fontSize="11" display="average energy" width="129" sizeVersion="0">avg-energy</monitor>
326-
<switch x="101" y="44" height="33" on="true" variable="collide?" display="collide?" width="103" sizeVersion="0"></switch>
327-
<monitor x="13" precision="0" y="278" height="45" fontSize="11" display="percent fast" width="97" sizeVersion="0">percent-fast</monitor>
328-
<monitor x="115" precision="0" y="279" height="45" fontSize="11" display="percent medium" width="103" sizeVersion="0">percent-medium</monitor>
329-
<monitor x="223" precision="0" y="279" height="45" fontSize="11" display="percent slow" width="92" sizeVersion="0">percent-slow</monitor>
330-
<slider x="12" step="1" y="176" max="100" display="box-size" height="33" min="5" direction="Horizontal" default="95.0" variable="box-size" units="%" width="179" sizeVersion="0"></slider>
331-
<slider x="13" step="1" y="93" max="20" display="init-particle-speed" height="33" min="1" direction="Horizontal" default="10.0" variable="init-particle-speed" width="179" sizeVersion="0"></slider>
332-
<slider x="12" step="1" y="134" max="20" display="particle-mass" height="33" min="1" direction="Horizontal" default="1.0" variable="particle-mass" width="179" sizeVersion="0"></slider>
333-
<switch x="205" y="44" height="33" on="true" variable="trace?" display="trace?" width="103" sizeVersion="0"></switch>
334-
<button x="205" y="78" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="clear trace" width="103" sizeVersion="0">clear-drawing</button>
335-
<button x="15" y="396" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="116" sizeVersion="0">watch turtle 0</button>
336-
<button x="15" y="430" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="116" sizeVersion="0">follow turtle 0</button>
337-
<button x="15" y="464" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="116" sizeVersion="0">ride turtle 0</button>
338-
<button x="135" y="451" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="132" sizeVersion="0">reset-perspective</button>
339-
<note x="14" y="346" height="44" textColorLight="-16777216" fontSize="11" width="276" markdown="false">This is a version of the GasLab Gas in a Box
320+
<view x="340" wrappingAllowedX="false" y="11" frameRate="30.0" minPycor="-40" height="571" showTickCounter="true" patchSize="7.0" fontSize="18" wrappingAllowedY="false" width="571" tickCounterLabel="ticks" maxPycor="40" updateMode="1" maxPxcor="40" minPxcor="-40"></view>
321+
<button x="12" y="55" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="86" display="go/stop">go</button>
322+
<button x="12" y="10" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="86">setup</button>
323+
<slider x="100" step="1" y="10" max="1000" width="209" display="number-of-particles" height="50" min="1" direction="Horizontal" default="100.0" variable="number-of-particles"></slider>
324+
<monitor x="13" precision="2" y="304" height="60" fontSize="11" width="119" display="average speed">avg-speed</monitor>
325+
<monitor x="140" precision="2" y="304" height="60" fontSize="11" width="129" display="average energy">avg-energy</monitor>
326+
<switch x="101" y="65" height="40" on="true" variable="collide?" width="103" display="collide?"></switch>
327+
<monitor x="13" precision="0" y="372" height="60" fontSize="11" width="100" display="percent fast">percent-fast</monitor>
328+
<monitor x="118" precision="0" y="373" height="60" fontSize="11" width="103" display="percent medium">percent-medium</monitor>
329+
<monitor x="226" precision="0" y="373" height="60" fontSize="11" width="100" display="percent slow">percent-slow</monitor>
330+
<slider x="12" step="1" y="238" max="100" width="179" display="box-size" height="50" min="5" direction="Horizontal" default="95.0" variable="box-size" units="%"></slider>
331+
<slider x="13" step="1" y="121" max="20" width="179" display="init-particle-speed" height="50" min="1" direction="Horizontal" default="10.0" variable="init-particle-speed"></slider>
332+
<slider x="12" step="1" y="179" max="20" width="179" display="particle-mass" height="50" min="1" direction="Horizontal" default="1.0" variable="particle-mass"></slider>
333+
<switch x="205" y="65" height="40" on="true" variable="trace?" width="103" display="trace?"></switch>
334+
<button x="205" y="110" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="103" display="clear trace">clear-drawing</button>
335+
<button x="15" y="505" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="116">watch turtle 0</button>
336+
<button x="15" y="550" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="116">follow turtle 0</button>
337+
<button x="15" y="595" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="116">ride turtle 0</button>
338+
<button x="135" y="576" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="132">reset-perspective</button>
339+
<note x="14" y="455" backgroundDark="0" fontSize="11" width="276" markdown="false" height="44" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">This is a version of the GasLab Gas in a Box
340340
model, modified to show off NetLogo's
341341
perspective features. Try it in both 2D and 3D.</note>
342-
<monitor x="147" precision="3" y="402" height="45" fontSize="11" width="112" sizeVersion="0">subject</monitor>
342+
<monitor x="147" precision="3" y="511" height="60" fontSize="11" width="112">subject</monitor>
343343
</widgets>
344344
<info><![CDATA[## WHAT IS IT?
345345

0 commit comments

Comments
 (0)