Galton box animation: Difference between revisions

Content added Content deleted
(→‎{{header|REXX}}: added code to automatically freeze the REXX program to enable to capture a point in time (for a screenshot); also changed wording in the REXX section header.)
m (→‎{{header|REXX}}: refreshed the output.)
Line 2,936: Line 2,936:
This REXX program makes use of   '''SCRSIZE'''   REXX program (or
This REXX program makes use of   '''SCRSIZE'''   REXX program (or
BIF) which is used to determine the screen
BIF) which is used to determine the screen
<br>width and depth of the terminal (console). &nbsp; Some REXXes don't
<br>width and depth of the terminal (console). &nbsp; Some REXXes don't have this BIF.
have this BIF.


The &nbsp; '''SCRSIZE.REX''' &nbsp; REXX program is included
The &nbsp; '''SCRSIZE.REX''' &nbsp; REXX program is included here &nbsp; ───► &nbsp; [[SCRSIZE.REX]].
here &nbsp; ───► &nbsp; [[SCRSIZE.REX]].


The terminal size used for this display was &nbsp; '''64'''<small>x</small>'''96'''.
The terminal size used for this display was &nbsp; '''64'''<small>x</small>'''96'''.
Line 2,946: Line 2,944:
{{out|output|text=&nbsp; when the REXX program was "stopped" by using the inputs of &nbsp; &nbsp; <tt> , , 100 </tt> &nbsp; so as to freeze the program to capture a screenshot:}}
{{out|output|text=&nbsp; when the REXX program was "stopped" by using the inputs of &nbsp; &nbsp; <tt> , , 100 </tt> &nbsp; so as to freeze the program to capture a screenshot:}}
<pre>
<pre>
· step 100

·☼ step 100


·☼·
·☼·
Line 2,953: Line 2,950:
· ·☼·
· ·☼·


·☼· · ·
· ·☼· ·


· · ·· ·
· · · · ·


· · ·☼· · ·
· · ·☼· · ·


· · · · ·· ·
·· · · · · ·


· · · ·☼· · · ·
· · · · ·☼· · ·


· · · · ·☼· · · ·
· · · · · · ·☼· ·


· · · · ·· · · · ·
· · ·· · · · · · ·


· · · · · · · · ·· ·
· · · ·· · · · · · ·


· · · · ·☼· · · · · · ·
· · · ·☼· · · · · · · ·


· · · · · · ·· · · · · ·
· · ·· · · · · · · · · ·


· · · · · ·☼· · · · · · · ·
· · · · · · · ·☼· · · · · ·


· · · · · · · ·☼· · · · · · ·
· · · · · · ·☼· · · · · · · ·



























☼ ☼
☼ ☼
☼ ☼
☼ ☼ ☼
☼ ☼
☼ ☼ ☼ ☼
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼
</pre>
</pre>
{{out|output|text=&nbsp; when using the default inputs; &nbsp; this is the final screenshot:}}
{{out|output|text=&nbsp; when using the above inputs; &nbsp; this is the final screenshot:}}
<pre>
<pre>
· step 353
· step 350


· ·
· ·
Line 3,040: Line 3,037:
· · · · · · · · · · · · · · ·
· · · · · · · · · · · · · · ·


☼ ☼
☼ ☼
☼ ☼
☼ ☼
☼ ☼
☼ ☼
☼ ☼
☼ ☼ ☼
☼ ☼ ☼
☼ ☼ ☼ ☼
☼ ☼ ☼ ☼
☼ ☼ ☼ ☼
☼ ☼ ☼ ☼
☼ ☼ ☼ ☼
☼ ☼ ☼ ☼
☼ ☼ ☼ ☼
☼ ☼ ☼ ☼
☼ ☼ ☼ ☼
☼ ☼ ☼ ☼
☼ ☼ ☼ ☼
☼ ☼ ☼ ☼
☼ ☼ ☼ ☼
☼ ☼ ☼ ☼
☼ ☼ ☼ ☼
☼ ☼ ☼ ☼
☼ ☼ ☼ ☼
☼ ☼ ☼ ☼
☼ ☼ ☼ ☼
☼ ☼
☼ ☼ ☼ ☼
☼ ☼ ☼ ☼
☼ ☼ ☼ ☼ ☼ ☼
☼ ☼ ☼ ☼ ☼ ☼
☼ ☼ ☼ ☼ ☼ ☼
☼ ☼ ☼ ☼ ☼ ☼
☼ ☼ ☼ ☼ ☼ ☼
☼ ☼ ☼ ☼ ☼ ☼
☼ ☼ ☼ ☼
☼ ☼ ☼ ☼
☼ ☼ ☼ ☼ ☼ ☼ ☼
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼
</pre>
</pre>