MotionScript

@motion-script/core


@motion-script/core / NoiseFillProp

Interface: NoiseFillProp

Defined in: attributes/shape/fill/implementations/noise.ts:18

Sparse per-pixel speckle — dust, static, stipple.

A source, painted inside the shape's own path: unlike Effects.grain, which modulates whatever has already been drawn (including children and, in backdrop mode, what lies beneath), this simply stacks as another fill layer. Reach for the effect to grain a composite; reach for this to texture one shape.

For a continuous noise field rather than speckle — cloud, marble, smoke — see FractalNoiseFillProp.

Properties

blend?

optional blend?: "color" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "hard-light" | "soft-light" | "difference" | "exclusion" | "hue" | "saturation" | "luminosity" | "normal"

Defined in: attributes/shape/fill/implementations/noise.ts:29


color?

optional color?: Color

Defined in: attributes/shape/fill/implementations/noise.ts:22


density?

optional density?: number

Defined in: attributes/shape/fill/implementations/noise.ts:21


opacity?

optional opacity?: number

Defined in: attributes/shape/fill/implementations/noise.ts:28


seed?

optional seed?: number

Defined in: attributes/shape/fill/implementations/noise.ts:27

Random field offset. Tween it to make the speckle crawl — without this the field is fixed, and animated static could only be had from the grain effect.


size?

optional size?: Vector2

Defined in: attributes/shape/fill/implementations/noise.ts:20


type

type: "noise"

Defined in: attributes/shape/fill/implementations/noise.ts:19