rullino
    Preparing search index...

    Variable grayscaleConst

    grayscale: PointwiseFilter<
        {
            amount: {
                default: 1;
                description: "Blend between the original colour (0) and full grayscale (1).";
                label: "Amount";
                max: 1;
                min: 0;
                step: 0.01;
                type: "float";
            };
            method: {
                default: "luminance";
                description: "How brightness is computed. Luminance weighs colours like the eye does, Average takes the mean, Max takes the brightest channel.";
                label: "Method";
                options: {
                    average: "Average";
                    luminance: "Luminance (Rec. 709)";
                    max: "Max";
                };
                type: "enum";
            };
        },
    > = ...

    Grey from linear RGB: Rec. 709 luminance (physically right), channel average or channel max. All three are linear in colour, so they run on premultiplied values directly.