In order to always see the text, function uses Gray 10 or White based on the "luminance" of the background. Uses W3C guidelines and calculations found on stackoverflow here: https://stackoverflow.com/questions/3942878/how-to-decide-font-color-in-white-or-black-depending-on-background-color
1 | pick_text_color(hex_color)
|
hex_color |
A hexidecimal color for the background |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.