PLAYGROUND (experimental)

line_points

line_points(points, [stroke=#000000], [weight=1.00])

Draw a line from a list of 2 points (top/left, bottom/right)

Syntaxe

line(points=[10,10, 15,15], stroke="#000000",weight=4)

Arguments

NameRequiredDefaultDescription
pointsyes-List of Coords of top/left, bottom/right
stroke-#000000Stroke color
weight-1.00Stroke weight (thickness)

Full example

canvas(600, 600, "#020410", center=true);

load_text_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, stroke="#FFC107");
text(whoami(), 0,0, ax=middle, ay=middle, stroke="#FFC107");

save(whoami() + ".png");