On this page

Type Alias MultiChannelGradientColoringFragmentOptions

Options as per howto interpret image channels in the context of a multi channel gradient coloring fragment

type MultiChannelGradientColoringFragmentOptions = {
    categoryChannel?: "r" | "g" | "b" | "a";
    decode: MultiChannelDecoderOptions;
    opacity?: number;
    smooth?: boolean;
    stopsPerCategory: StopsPerCategoryType[];
    valueChannels?: "rgb" | "rg" | "r" | "gb" | "g" | "b";
}
Index

Properties

categoryChannel?: "r" | "g" | "b" | "a"

Channel to use for a category. Can be one of "r", "g", "b" or "a" (default: "a")

Polynomial information as per how to decode the multi channel value.

opacity?: number

0-1

smooth?: boolean

Apply the gradient smoothly, rather then discrete steps.

stopsPerCategory: StopsPerCategoryType[]

The color stops for each gradient. There is a gradient per category.

valueChannels?: "rgb" | "rg" | "r" | "gb" | "g" | "b"

Channel(s) used to apply the polynomial coeficients (see MultiChannelDecoderOptions)

Was this helpful?
SDK JS
Modules
Reference
types
MultiChannelGradientColoringFragmentOptions