colourDelta | R Documentation |
Check the similarity of two colours by hex code. 0 = identical, 1 = opposite (black & white)
colourDelta(hex1, hex2)
hex1 |
colour one, as hex code #XXXXXX |
hex2 |
colour two, as hex code #XXXXXX |
a value from 0 (identical) to 1 (completely opposite, black & white)
# colour similarity between FLA and TBL primary colours
colourDelta("#041E42", "#002868")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.