Companion

Properties

Link copied to clipboard

A ColorSimilarityChecker that uses the Euclidean distance in the CIELAB color space to determine similarity. This checker is more accurate to human perception, but has slower performance.

Link copied to clipboard

A ColorSimilarityChecker that uses the Euclidean distance in the RGB color space to determine similarity.

Link copied to clipboard

A ColorSimilarityChecker that uses the Euclidean distance in the RGB color space to determine similarity, weighted by the perceived luminance of each color channel.

Functions

Link copied to clipboard
fun euclidean(redWeight: Double, greenWeight: Double, blueWeight: Double): ColorSimilarityChecker

Creates a ColorSimilarityChecker that uses the Euclidean distance in the RGB color space to determine similarity.