Line
Draws a line between two points using Bresenham's algorithm
intermediate
Since P00
Input Ports
Color
Line color; connected input overrides the parameter
Output Ports
Image
Generated line image with a transparent background
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| Width | Int | 64 | Canvas width in pixels |
| Height | Int | 64 | Canvas height in pixels |
| X1 | Int | 0 | Start point X coordinate |
| Y1 | Int | 0 | Start point Y coordinate |
| X2 | Int | 63 | Controls the x2 setting for Line. |
| Y2 | Int | 63 | Controls the y2 setting for Line. |
| Thickness | Int | 1 | Controls the thickness setting for Line. |
| Color | Color | White | Controls the color setting for Line. |
Overview
Draws a line between two points using Bresenham's algorithm
Inputs and Outputs
Input Ports
- Color
Color: Line color; connected input overrides the parameter
Output Ports
- Image
Image: Generated line image with a transparent background
Key Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| Width | Int | 64 | Canvas width in pixels |
| Height | Int | 64 | Canvas height in pixels |
| X1 | Int | 0 | Start point X coordinate |
| Y1 | Int | 0 | Start point Y coordinate |
| X2 | Int | 63 | Controls the x2 setting for Line. |
| Y2 | Int | 63 | Controls the y2 setting for Line. |
| Thickness | Int | 1 | Controls the thickness setting for Line. |
| Color | Color | White | Controls the color setting for Line. |
When to Use
Use Line when you need this operation to remain explicit, reusable, and easy to tune inside a PixPipeline node graph.
Notes
Connect compatible data types and preview the result while tuning this node. Parameter names and port names follow the PixPipeline UI.