Home
API: forms

Function: drawShape()

lifecycle-kit

lifecycle-kit


lifecycle-kit / forms / drawShape

Function: drawShape()

drawShape(g, shape): void

Defined in: forms/render/pixi.ts:54

Issue one shape's geometry.

Deliberately geometry only — no fill() and no stroke(). A form rule says where the outline is; colour comes from pigment and light from assemblage. The consumer calls fill/stroke itself after this returns, which is exactly the pattern the existing renderers already use (g.ellipse(...).fill({ color, alpha })) and so requires no rewrite.

Parameters

g

GraphicsLike

shape

Shape

Returns

void