Dragon curve: Difference between revisions
Content deleted Content added
No edit summary |
|||
Line 2,876: | Line 2,876: | ||
</pre> |
</pre> |
||
=={{header|M2000 Interpreter}}== |
=={{header|M2000 Interpreter}}== |
||
[https://1.bp.blogspot.com/-KTPvvri-EAQ/W_7C9ug1WFI/AAAAAAAAHck/NeWCuJ0GXpkMwkANM6i6UJRgZxqig_mXgCLcBGAs/s1600/dragon_curve.png Image] |
|||
<lang M2000 Interpreter> |
<lang M2000 Interpreter> |
||
Module Checkit { |
Module Checkit { |
||
Line 2,945: | Line 2,947: | ||
</lang> |
</lang> |
||
=={{header|M4}}== |
=={{header|M4}}== |
||
This code uses the "predicate" approach. A given x,y position is tested by a predicate as to whether it's on the curve or not and printed as a character or a space accordingly. The output goes row by row and column by column with no image storage or buffering. |
This code uses the "predicate" approach. A given x,y position is tested by a predicate as to whether it's on the curve or not and printed as a character or a space accordingly. The output goes row by row and column by column with no image storage or buffering. |