Skip to main content

ColorFilter

Defines a color filter.

Properties

  • blend_mode - The blend mode to apply to the color filter.
  • color - The color to use when applying the filter.

Methods

  • copy - Returns a copy of this object with the specified properties overridden.

Properties

blend_modeclass-attributeinstance-attribute

blend_mode: BlendMode | None = None

The blend mode to apply to the color filter.

colorclass-attributeinstance-attribute

color: ColorValue | None = None

The color to use when applying the filter.

Methods

copy

copy(
    color: ColorValue | None = None,
    blend_mode: BlendMode | None = None,
) -> ColorFilter

Returns a copy of this object with the specified properties overridden.