PitchKit
API Reference@pitchkit/coreFunctions

computeStripeBands()

function computeStripeBands(outline, stripeCount): Rect[];

Defined in: packages/core/src/scene/appearance.ts:18

Computes the alternating vertical grass stripe bands across the outline (every other band is painted — the gaps are the "unpainted" stripes, left to show the surface color underneath). Pure geometry, no rendering.

Parameters

ParameterType
outlineRect
stripeCountnumber

Returns

Rect[]

On this page