CompareColorOptions
10/22/22Less than 1 minute
color CompareColorOptions
Controls how two colors are compared (per-channel tolerance and alpha handling). Used with helpers such as Color similarity APIs.
See also
Table of contents
Properties
Properties
ignoreAlphaChannel
ignoreAlphaChannel?(read-only):boolean
When true (default), alpha is ignored and only RGB channels participate in the comparison.
threshold
threshold?(read-only):number
Maximum per-channel delta (0–255 scale) allowed for channels to still count as “equal”. Default 16: each of R/G/B must differ by less than this value.
