Description Usage Arguments Value Examples
Functions to get contrast ratio between two colors.
1 |
... |
colors string, the length of '...' must be 2. |
Return the contrast ratio of two colors. For the same colors, return 1. The value increases with the increase of contrast ratio.
1 2 | col_contrast_ratio("red", "white")
col_contrast_ratio("red", "#AB12CD")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.