Contrast.ContrastRatio
Extension Method in Contrast
Declaration
public static float ContrastRatio(this Color color, Color other)Description
Returns the contrast ratio of the color to another color.
Parameters
| color | The first color to compare. |
| other | The second color to compare. |
Returns
| float | The contrast ratio of the color to another color. |