@motion-script/core / OilPaintEffect
Interface: OilPaintEffect
Defined in: attributes/shape/effects/implementations/oil-paint.ts:15
Kuwahara filter — the painterly one.
Each pixel looks at four overlapping quadrant windows and takes the mean of whichever is flattest. Averaging within a region but never across a boundary is what makes it read as brushwork: flat areas smooth into strokes while edges stay crisp, where a plain blur would soften both.
Cost grows with the square of radius — four windows of (radius+1)² samples
each — so this is the most expensive effect in the set by a wide margin.
Extends
Properties
mode?
optionalmode?:EffectMode
Defined in: attributes/shape/effects/effect-data.ts:83
Inherited from
radius
radius:
number
Defined in: attributes/shape/effects/implementations/oil-paint.ts:18
Window radius in px. Brush size, and the dominant cost. 0 = off.
type
type:
"oilPaint"
Defined in: attributes/shape/effects/implementations/oil-paint.ts:16