ãã ã®èªåç¨åå¿é² <?php function rgb16c($rgb) { $c16 = ""; if (strlen($rgb)!=6){ return "0,0,0"; } $tmp = 0; for ($i=0; $i < strlen($rgb); $i++){ $value = intval(base_convert($rgb{$i}, 16, 10)) + 1; if ($i%2){ $c16 .= strval($tmp * $value -1).","; } else { $tmp = $value; } } return trim($c16, ","); } ããããééãã¦ã <?php /// ã«ã©ã¼ã#FFFFFF â 255,255,255ã¨ããããã«å¤æãã function rgb16c($rgb) { $rgb = trim($rgb, "#"); $c
{{#tags}}- {{label}}
{{/tags}}