Skip to content

loopsToDrawables

loopsToDrawables(l, bake?): DrawableVector[]

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

Self-link loops (#505, #542) → one drawable per loop, the loop lane’s twin, with its centre solve (loopsSpreadCot), leg length and piece length h (loopPieceLength) as the shader solves them. A headless loop is ONE stroked path (traceLoop) whose ends move by offset / bake world units, as linesToDrawables’ do (the loop is linear in its ends and h, so the loop on the moved ends is the one the shader draws in px). A headed loop is ONE filled outline, traceLoopArrowOutline or traceLoopHalfArrowOutline, solved in px (×k) on a screen layer and emitted ÷k, as arrowsToDrawables.

InstancedLoopsData

number = 1

DrawableVector[]