isSimilar

abstract fun isSimilar(rgb1: RGB, rgb2: RGB, tolerance: Double): Boolean(source)

Checks if two RGB colors are similar within a specified tolerance.

Parameters

rgb1

The first RGB color to compare.

rgb2

The second RGB color to compare.

tolerance

A value between 0 and 1 representing the maximum allowed color difference.