Description Usage Arguments Details Value See Also Examples
Given a color, return a transparent one
1  | transparent(col, amount=0.5)
 | 
col | 
 (color) The original color. Might be specified as a color name or a "#RRGGBB(AA)" hex color definition.  | 
amount | 
 (number, [0-1]) The amount of transparency. 0 for completely visible, 1 for completely transparent. (Defaults to 0.5).  | 
Very simple utility function to create transparent colors. Given a color, it transforms it to rgb space, adds a set amount to all chanels and transforms it back to a color.
A transparent color
1 2 3 4  |  
transparent("red")
transparent("#333333")
 
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.