Normalise either a LineStyle preset name or a raw
number[] into the canonical representation. The supplied
out is filled in-place and returned for chaining; pass a
freshly-allocated buffer (see emptyLinePattern) on
first use and reuse it on subsequent updates.
Invalid input — unknown preset, non-finite or negative
entries — collapses to a solid pattern (len = 0). Easier
to debug than silently emitting a mangled stipple.
Normalise either a LineStyle preset name or a raw
number[]into the canonical representation. The suppliedoutis filled in-place and returned for chaining; pass a freshly-allocated buffer (see emptyLinePattern) on first use and reuse it on subsequent updates.Invalid input — unknown preset, non-finite or negative entries — collapses to a solid pattern (
len = 0). Easier to debug than silently emitting a mangled stipple.