Bitmap/Bresenham's line algorithm: Difference between revisions
Content added Content deleted
m (split a long line.) |
m (→version 1: changed wording in the REXX section header.) |
||
Line 3,322: | Line 3,322: | ||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
=== version 1 === |
=== version 1 === |
||
This REXX version has automatic scaling (for displaying the plot), includes a |
This REXX version has automatic scaling (for displaying the plot), includes a |
||
border, accepts lines segments from the |
|||
<br>command line, displays a (background) plot field, and |
<br>command line, displays a (background) plot field, and |
||
it also handles multiple line segments. |
|||
<lang rexx>/*REXX program plots/draws line segments using the Bresenham's line (2D) algorithm. */ |
<lang rexx>/*REXX program plots/draws line segments using the Bresenham's line (2D) algorithm. */ |
||
parse arg data /*obtain optional arguments from the CL*/ |
parse arg data /*obtain optional arguments from the CL*/ |