1
1
Fork 0
mirror of https://github.com/boxgaming/qbjs.git synced 2024-05-12 08:00:12 +00:00
3 G2D.LineCap
boxgaming edited this page 2024-01-20 06:06:41 -06:00

Gets or sets the current line cap style.
All subsequent drawing methods will use line cap style set by this method.

Syntax

lineCap = G2D.LineCap
G2D.LineCap lineCap&

The following line cap styles can be set with this method:

Style Description
DEFAULT The ends of lines are squared off at the endpoints. Default value.
ROUND The ends of lines are rounded.
SQUARE The ends of lines are squared off by adding a box with an equal width and half the height of the line's thickness.

Examples

Example1: Draw a line with a rounded ends.

Import G2D From "lib/graphics/2d.bas"

G2D.LineWidth 20
G2D.LineCap G2D.ROUND
Line (100, 100)-(500,300), 2

See Also

G2D.LineWidth
G2D.LineDash