Keys →
Functions ↓
function colorShowFormat ( $col, $cc=-1 ) {#-k color format#- Takes this hex color and builds a <td> to show it and its contrast color.#-p $col - req - Hex RGB color (Must be in the form #hhhhhh)#-p $cc - opt - Contrast color to apply. Default -1#-p - -1 use colorContrast#-p - -2 use colorContrastBW#-d 2/19/21 - Added if ($cc == -1) $cc = colorContrast($col); if ($cc == -2) $cc = colorContrastBW($col); $sout = '<td class="code" style="vertical-align: middle; font-size:2em; text-align:center; height: 5vh; width: 10vw; color:' . $cc . '; background-color:' . $col . ';"><b>' . $col . '</b></td>'; return $sout; }?>