Skip to content

linesToDrawables

linesToDrawables(l, offsetScale?): DrawableVector[]

Defined in: core/instanced-vector.ts:160

Instanced lines → one stroked path per line (straight, or a quadratic bow for bends). World endpoints with a per-line width, so screen sizeMode needs no bake (the width alone is in px). The end offsets (#509) move each end by offset · offsetScale world units: 1 / k on a screen layer, 1 on a world one (the bend is a fraction of the chord, so the bow on the moved ends is the one the shader draws in px).

InstancedLinesData

number = 1

DrawableVector[]