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). Some REXXes don't |
<br>width and depth of the terminal (console). Some REXXes don't have this BIF. |
||
have this BIF. |
|||
The '''SCRSIZE.REX''' REXX program is included |
The '''SCRSIZE.REX''' REXX program is included here ───► [[SCRSIZE.REX]]. |
||
here ───► [[SCRSIZE.REX]]. |
|||
The terminal size used for this display was '''64'''<small>x</small>'''96'''. |
The terminal size used for this display was '''64'''<small>x</small>'''96'''. |
||
Line 2,946: | Line 2,944: | ||
{{out|output|text= when the REXX program was "stopped" by using the inputs of <tt> , , 100 </tt> so as to freeze the program to capture a screenshot:}} |
{{out|output|text= when the REXX program was "stopped" by using the inputs of <tt> , , 100 </tt> so as to freeze the program to capture a screenshot:}} |
||
<pre> |
<pre> |
||
⚫ | |||
⚫ | |||
·☼· |
·☼· |
||
Line 2,953: | Line 2,950: | ||
· ·☼· |
· ·☼· |
||
· ·☼· · |
|||
☼· · · · · |
|||
· · ·☼· · · |
· · ·☼· · · |
||
· |
·☼· · · · · · |
||
· · · |
· · · · ·☼· · · |
||
· · · · |
· · · · · · ·☼· · |
||
· · · |
· · ·☼· · · · · · · |
||
· · · · |
· · · ·☼· · · · · · · |
||
· · · ·☼· · · · · · · · |
|||
· · · |
· · ·☼· · · · · · · · · · |
||
· · · · · |
· · · · · · · ·☼· · · · · · |
||
· · · · · · ·☼· · · · · · · · |
|||
☼ |
☼ |
||
☼ |
☼ |
||
☼ |
☼ |
||
☼ |
|||
☼ |
☼ |
||
☼ |
☼ |
||
⚫ | |||
☼ |
☼ |
||
☼ |
|||
☼ |
☼ |
||
☼ |
☼ |
||
☼ |
☼ |
||
☼ |
|||
☼ |
☼ ☼ ☼ |
||
☼ ☼ |
☼ ☼ ☼ |
||
☼ ☼ |
☼ ☼ ☼ ☼ ☼ ☼ ☼ |
||
☼ ☼ ☼ |
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ |
||
⚫ | |||
⚫ | |||
</pre> |
</pre> |
||
{{out|output|text= when using the |
{{out|output|text= when using the above inputs; this is the final screenshot:}} |
||
<pre> |
<pre> |
||
· step |
· step 350 |
||
· · |
· · |
||
Line 3,040: | Line 3,037: | ||
· · · · · · · · · · · · · · · |
· · · · · · · · · · · · · · · |
||
☼ |
|||
☼ ☼ |
|||
☼ ☼ |
|||
☼ ☼ ☼ |
|||
☼ ☼ ☼ |
|||
☼ ☼ ☼ |
|||
⚫ | |||
⚫ | |||
☼ ☼ ☼ |
☼ ☼ ☼ |
||
☼ ☼ ☼ ☼ |
☼ ☼ ☼ ☼ |
||
☼ ☼ ☼ ☼ |
☼ ☼ ☼ ☼ |
||
☼ ☼ ☼ ☼ |
☼ ☼ ☼ ☼ |
||
☼ ☼ ☼ ☼ |
|||
☼ ☼ ☼ ☼ |
|||
☼ ☼ ☼ ☼ |
|||
☼ ☼ ☼ ☼ |
|||
☼ ☼ ☼ ☼ |
|||
☼ ☼ ☼ ☼ |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
☼ ☼ ☼ ☼ ☼ ☼ |
☼ ☼ ☼ ☼ ☼ ☼ |
||
☼ ☼ ☼ ☼ ☼ ☼ |
☼ ☼ ☼ ☼ ☼ ☼ |
||
☼ ☼ ☼ ☼ ☼ ☼ |
☼ ☼ ☼ ☼ ☼ ☼ |
||
⚫ | |||
⚫ | |||
☼ ☼ ☼ ☼ ☼ ☼ ☼ |
|||
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ |
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ |
||
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ |
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ |
||
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ |
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ |
||
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ |
|||
⚫ | |||
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ |
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ |
||
☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ ☼ |
|||
</pre> |
</pre> |
||