calculateContrastRatio

fun calculateContrastRatio(color1: Color, color2: Color): Double

Calculates the contrast ratio between two colors.

Return

The contrast ratio between the two colors

Parameters

color1

First color

color2

Second color