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

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.

Syntax

G2D.LineDash dashWidth&[, spaceWidth&]

Parameters

  • 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&.

Examples

Example1: Draw a dashed circle.

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

G2D.LineDash 5
Circle (200, 200), 100, 2

See Also

G2D.LineDashOff
G2D.LineCap
G2D.LineWidth