Skip to content
rasberry edited this page Nov 5, 2025 · 2 revisions

Line

Usage

 Draws a line or sequence of lines
 -m (LineKind)                Method used to draw the line
 -p (x,y)                     Specify a point. Can be specified multiple times
 -pp (x,y)                    Specify a proportional point (0.1,20%)
 -c (color)                   Color for the line (default black)

 Available methods:
 0. RunLengthSlice            Run-length slice algorithm
 1. Bresenham                 Bresenham line algorithm
 2. DDA                       Digital Differential Analyzer method
 3. XiaolinWu                 Xiaolin Wu Anti-Aliased line algorithm
 4. WuBlackBook               Wu's algorithm from Graphics Programming Black Book

Examples

handle
-p 10,10 -p 20,90 -pp 0.9,0.9 Line-handle-0
-m XiaolinWu -c White -p 10,10 -pp 0.9,0.5 -pp 0.1,0.9 Line-handle-1
Clone this wiki locally