PXC Documentation

PXC Home

Draw Line

pre 1.18

Draw line on an image. Connect path data to it to draw line from path.



Node Data

GenerateArray

Display name

Draw Line

Internal name

Node_Line

Inheritances

node
node_processor
node_line

Inputs

node_line

dimension

Dimension

bool

Background

int

Segment

vec2

Width

float

Wiggle

float

Random Seed

rotation

Rotation

pathnode

Path

slider

Range

float

Shift

gradient

Color Over Length

curve

Width Over Length

bool

Span Width Over Path

bool

Round Cap

int

Round Segment

bool

Span Color Over Path

bool

Width Pass

bool

1Px Mode

surface

Texture

bool

Fix Length

float

Segment Length

vec2

Texture Position

rotation

Texture Rotation

vec2

Texture Scale

gradient

Random Blend

bool

Invert

bool

Clamp Range

enum

Data Type

vector

Segments

bool

Scale Texture To Length

bool

Use Path Bounding Box

padding

Padding

vec2

Start Point

vec2

End Point

Outputs

node_line

surface

Surface Out

surface

Width Pass

Line node is used to draw a line (or lines) on a surface.



Path Data


Line node takes path data to define the path to draw. Without it, it will draw a single straight line across the middle of the surface with the Rotation value control the angle.

The path data can be provided through Path.




Resolution


When drawing a path, line node generate segment of straight lines and combine them together. The more segment it generated the more accurate the path will be. There're 2 types of segment generation controlled by the Fix Length property.


Fix amount


By default, Fix Length is set to false. This mean the amount of the segment is being controlled directly through the Segment property./p>

Fix length


When Fix Length is set to true, the segment length is being controlled instead. The Segment Length property will determine the maximum length of each segment in pixel.




Line Width


Line width can be controlled through the Width property. This width is a vector containing 2 values, the width of each segment will be random bewteen these 2 values. You can set it to the same value to fix the length.


1Px Mode


The 1Px Mode toggle will fix the line width to 1 pixel, and use a more pixel perfect algorithm to draw the lines.



Width Over Length


You can modulate the width of the line over it's length using the Width Over Length curve. This curve will be multiplied with the Width value to determine the final width.