Interface: ColorReplaceFilterOptions

ColorReplaceFilterOptions

Options for the ColorReplaceFilter constructor.

Properties:
Name Type Default Description
originalColor ColorSource 0xff0000

The color that will be changed.

targetColor ColorSource 0x000000

The resulting color.

tolerance number 0.4

Tolerance/sensitivity of the floating-point comparison between colors (lower = more exact, higher = more inclusive)

Members

originalColor ColorSource

The color that will be changed.

Default Value:
  • 0xff0000
Example
[1.0, 1.0, 1.0] = 0xffffff

targetColor ColorSource

The resulting color.

Default Value:
  • 0x000000
Example
[1.0, 1.0, 1.0] = 0xffffff

tolerance number

Tolerance/sensitivity of the floating-point comparison between colors (lower = more exact, higher = more inclusive)

Default Value:
  • 0.4