The Line Command


Command Summary

Draws a line between a set of two coordinates.

Command Syntax

Line xStart, yStart, xEnd, yEnd, drawmode

Menu Location

This command can't be found in any menu besides the command catalog.

Calculator Compatibility

This command works on all calculators.

Token Size

X byte(s)

The line command draws a line between two points. By default, the drawing mode is set to 1, which draws the line normally, so it doesn't have to be included if drawing a regular line.

Line 0, 3, 0, 9

Advanced Uses

The drawmode can be set to 0 to draw a "white" line, which will remove the pixels on the path of the line.

Line 0, 3, 0, 9, 0 //removes the line

You can also invert pixels on the line using -1 as the number argument.
Line 0, 3, 0, 9, -1

Related Commands

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Noncommercial-No Derivative Works 2.5 License.