Stroke Widget

From C4 Engine Wiki
Revision as of 12:49, 15 July 2023 by Eric Lengyel (talk | contribs) (Created page with "The '''Stroke Widget''' displays a vector-based line that can have cap styles and dashing. A stroke widget is drawn using the Slug Library. The widget color controls the color of the stroke. == Settings == The following settings are available specifically for Stroke Widgets. {| {{Table}} {{Tablehead|Setting|Description}} |- {{HeadingSetting|'''Stroke Settings'''}} |- {{Setting|'''Stroke thickness'''|Specifies the thickness of the stroke, in pixels.}} |-...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Stroke Widget displays a vector-based line that can have cap styles and dashing. A stroke widget is drawn using the Slug Library.

The widget color controls the color of the stroke.

Settings

The following settings are available specifically for Stroke Widgets.

Setting

Description

Stroke Settings

Stroke thickness

Specifies the thickness of the stroke, in pixels.

Stroke caps

Determines what style of caps are drawn for the stroke. This can be one of the following values:

  • Flat No caps are drawn, and the stroke has flat ends.
  • Triangle Triangular caps are drawn. The distance from each endpoint to the tip of the triangle is half the stroke's thickness.
  • Square Square caps are drawn. These extend the stroke by half its thickness at each end.
  • Round Circular caps are drawn. The radius is half the stroke's thickness.

Draw dashed stroke

Determines whether the stroke is drawn with dashing. If dashing is enabled, then each dash has the cap style specified by Stroke caps.

Dash length

Specifies the length of each visible dash, in pixels.

Gap length

Specifies the length of the empty gap between dashes, in pixels.

See Also