calculateContrast
Calculates the contrast ratio between two RGB colors.
- @param
rgb1- The first RGB color. - @param
rgb2- The second RGB color. - @returns The contrast ratio between the colors.
calculateContrastCalculates the contrast ratio between two RGB colors.
rgb1 - The first RGB color.rgb2 - The second RGB color.