Anonymous user
Bitmap/Bresenham's line algorithm: Difference between revisions
m
→version 1: changed wording in the REXX section header.
m (split a long line.) |
m (→version 1: changed wording in the REXX section header.) |
||
Line 3,322:
=={{header|REXX}}==
=== version 1 ===
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
it also handles multiple line segments.
<lang rexx>/*REXX program plots/draws line segments using the Bresenham's line (2D) algorithm. */
parse arg data /*obtain optional arguments from the CL*/
|