BLDasher class

Dash pattern generator (port of Blend2D's dasher).

Converts a solid BLPath into a dashed BLPath by applying a repeating dash/gap pattern. The result can then be stroked via BLStroker.

Segue ISO 32000-1 8.4.3.6 (d — line dash pattern):

  • o padrão alterna traço/lacuna começando por um traço;
  • um array de tamanho ímpar é usado ciclicamente, de modo que [3] significa 3 ligado / 3 desligado;
  • um array vazio (ou com comprimento total zero) significa linha sólida;
  • traços de comprimento zero viram pontos, visíveis quando o cap é redondo ou quadrado projetado.

Inspired by: blend2d/core/pathstroke.cpp dash logic.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

dashPath(BLPath input, List<double> dashArray, {double dashOffset = 0.0}) → BLPath
Applies a dash pattern to input and returns a new dashed path.