Contrast

Static Class in Zigurous.ColorPro


Declaration

public static class Contrast

Description

Functions for calculating contrast between colors.

Extension Methods

ContrastRatioReturns the contrast ratio of the color to another color.
ContrastRatioStringReturns the contrast ratio of the color to another color as a string.
HigherContrastingColorReturns the color that has the higher contrast ratio to the current color.
HighestContrastingColorReturns the color that has the highest contrast ratio to the current color.
LowerContrastingColorReturns the color that has the lower contrast ratio to the current color.
LowestContrastingColorReturns the color that has the lowest contrast ratio to the current color.