Yotsuba Games

Line

Draws a line between two points using Bresenham's algorithm

intermediate
Since P00

Input Ports

Color

Line color; connected input overrides the parameter

Color

Output Ports

Image

Generated line image with a transparent background

Image

Parameters

NameTypeDefaultDescription
WidthInt64Canvas width in pixels
HeightInt64Canvas height in pixels
X1Int0Start point X coordinate
Y1Int0Start point Y coordinate
X2Int63Controls the x2 setting for Line.
Y2Int63Controls the y2 setting for Line.
ThicknessInt1Controls the thickness setting for Line.
ColorColorWhiteControls 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

NameTypeDefaultDescription
WidthInt64Canvas width in pixels
HeightInt64Canvas height in pixels
X1Int0Start point X coordinate
Y1Int0Start point Y coordinate
X2Int63Controls the x2 setting for Line.
Y2Int63Controls the y2 setting for Line.
ThicknessInt1Controls the thickness setting for Line.
ColorColorWhiteControls 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.

Line — PixPipeline Node Reference