层级 (查看完整内容)

构造函数

访问器

方法

  • 参数

    • brightness: number

      Brightness value, range: -100 to 100.

    • contrast: number

      Contrast value, range: -100 to 100.

    • saturation: number

      Saturation value, range: -100 to 100.

    • hue: number

      Hue value, range: -180 to 180.

    返回 ColorEffect2D

    Adjusts color properties including brightness, contrast, saturation, and hue.

    调整颜色属性,包括亮度、对比度、饱和度和色调。

  • 参数

    • red: number = 0

      The red coefficient, range: 0 to 1.

    • green: number = 0

      The green coefficient, range: 0 to 1.

    • blue: number = 0

      The blue coefficient, range: 0 to 1.

    • alpha: number = 1

      The alpha coefficient, range: 0 to 1.

    返回 ColorEffect2D

    Sets the filter to a color transformation filter with the specified red, green, blue, and alpha coefficients.

    将滤镜设置为具有指定红色、绿色、蓝色和 Alpha 系数的颜色转换滤镜。