Type alias GreyAlgorithmCallback

GreyAlgorithmCallback: ((red, green, blue, image) => number)

Type declaration

    • (red, green, blue, image): number
    • Call back that converts the RGB channels to grey. It is clamped afterwards.

      Parameters

      • red: number

        Value of the red channel.

      • green: number

        Value of the green channel.

      • blue: number

        Value of the blue channel.

      • image: Image

      Returns number

      Value of the grey channel.