Skip to main content

Interface: CurvesFilter

Defined in: attributes/shape/filters/implementations/curves.ts:14

Remaps pixel values along a tone curve defined by control points.

Points are [input, output] pairs in the [0, 1] range. The renderer interpolates a smooth curve through them. Applies to composite RGB by default; set channel to target a single channel.

Properties

channel?

optional channel?: CurvesChannel

Defined in: attributes/shape/filters/implementations/curves.ts:19

Channel(s) to apply the curve to. Default 'rgb'.


points

points: [number, number][]

Defined in: attributes/shape/filters/implementations/curves.ts:17

Curve control points as [input, output] pairs in [0, 1].


type

type: "curves"

Defined in: attributes/shape/filters/implementations/curves.ts:15