Hallo Leute,
wie kann ich mittels PHP aus einem HEX-Farbcode (z.B #000000)den RGB-Farbcode (z.B. 0,0,0) berechnen?
Gibts da ne Lösung?
$r = hexdec(substr($color, 0, 2));
$g = hexdec(substr($color, 2, 2));
$b = hexdec(substr($color, 4, 2));
siehe: [url=http://www.php.net/manual/de/function.hexdec.php]
*RTFM*
Gruss, Ingo