Description Usage Arguments Value Examples
Takes a hex code like '#C0FFEE' and simplifies to '#CFE' (i.e. the first character from each character pair).
1 | dh_shorten(hex_code)
|
hex_code |
Character. A valid hex colour code starting with a hash mark (#). Characters must take the values 0 to 9 or A to F (case insensitive). |
Character. A shortened hex colour code: a hash mark followed by three characters (0 to 9, A to F).
1 | dh_shorten("#C0FFEE")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.