Skip to content
pixi-silk
GitHub repository
Class

SilkGeometry

import { SilkGeometry } from 'pixi-silk';

Geometry behind every SilkGraphics: one unit quad plus an interleaved instance buffer of 44 floats (STRIDE) per primitive. You rarely need it directly.

Extends#

  • Geometry

Constructors#

Constructor#

new SilkGeometry(): SilkGeometry;

Returns#

SilkGeometry

Overrides#

Geometry.constructor

Properties#

PropertyModifierTypeDescriptionDefined in
instanceBufferreadonlyBufferPer-primitive data, 44 floats each. It grows on demand and never shrinks, so clear() reuses it.SilkGraphics.ts:555
localBoundsreadonlyBoundsBounds of everything drawn, in local units (includes stroke widths and blur).SilkGraphics.ts:557

Accessors#

bounds#

Get Signature#

get bounds(): Bounds;

Returns the bounds of the geometry.

Returns

Bounds

Overrides#

Geometry.bounds