line_points
Draw a line from a list of 2 points (top/left, bottom/right) or more... , can't be filled
line_points(
points,
[stroke=#000000],
[weight=1.00]
)
Draw a line from a list of 2 points (top/left, bottom/right) or more... , can't be filled
Syntaxe
line(points=[10,10, 15,15], stroke="#000000",weight=4);
Arguments
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
points | yes | - | List of Coords for points | |
stroke | - | #000000 | Stroke color | |
weight | - | 1.00 | Stroke weight (thickness) |
Full example
canvas(600, 600, "#020410", center=true);
font_default(50);
rectangle(
x=-width()/2, y=-height()/2,
w=width(), h=height(),
stroke="#64B5F6", fill="transparent",
weight=40
);
text("@todo", 0,-130, ax=middle, ay=middle, fill="#FFC107");
text(whoami(), 0,0, ax=middle, ay=middle, fill="#FFC107");
save(whoami() + ".png");
