Draw Line 2 Points
Node Data | |
|---|---|
Display name | |
Draw Line 2 Points | |
Internal name | |
Node_Line_2Points | |
Inheritances | |
| Node_Line_2Points | |
Inputs | |
Output | |
vec2 |
Dimension |
surface |
Bg Surface |
Points | |
enum |
Point Mode |
vec2 |
Start Point |
vec2 |
End Point |
vec2 |
Offset |
rotation |
Direction |
float |
Distance |
Line | |
bool |
1Px Mode |
range |
Width |
toggle |
Cap |
int |
Segment |
Rendering | |
enum |
Blend Mode |
Colors | |
gradient |
Base Color |
gradient |
Color Over Length |
Texture | |
surface |
Texture |
vec2 |
Uv Position |
vec2 |
Uv Scale |
Outputs | |
surface |
Surface Out |
Attributes | |
| Color Depth | |
Draw line between 2 points.
Properties
| Points | |
| Point Mode | Method for defining line points:\n - 2 Point: Set point directly. - Start + Offset: Set starting points and offset from that point.\n - Start + Polar: Set starting points and direction/distance from that point. |
| Line | |
| 1Px Mode | Draw pixel perfect 1 px width line. |
| Width | Set width of the line. |
| Cap | Draw line cap. |
| Segment | Divide line to muliple segments. Useful for curved width. |
Commit History
| 1.21.2 |
|
|---|
Related Links
- Base Code: /scripts/node_line_2points/node_line_2points.gml
- Shader [sh_draw_line_width]: /shaders/sh_draw_line_width/sh_draw_line_width.fsh