Skip to content

G2D.LineWidth

boxgaming edited this page Jan 20, 2024 · 4 revisions

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

Syntax

lineWidth = G2D.LineWidth
G2D.LineWidth lineWidth&

Examples

Example1: Draw a thick circle.

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

Dim oldWidth As Long
oldWidth = G2D.LineWidth

G2D.LineWidth 10
Circle (200, 200), 100, 2

See Also

G2D.LineCap
G2D.LineDash

Clone this wiki locally