-
Notifications
You must be signed in to change notification settings - Fork 10
G2D.LineDash
boxgaming edited this page Jan 20, 2024
·
5 revisions
Sets a dashed style for line drawing methods.
All subsequent line drawing methods will use line width set by this method. The line dash style can be disabled by calling the G2D.LineDashOff.
G2D.LineDash dashWidth&[, spaceWidth&]
- The dashWidth& parameter specifies the length in pixels of the dashes.
- The optional spaceWidth& parameter specifies the distance in pixes between dashes. If not specified this will be set to the same value as dashWidth&.
Example1: Draw a dashed circle.
Import G2D From "lib/graphics/2d.bas"
G2D.LineDash 5
Circle (200, 200), 100, 2