Here is a compact function to convert HTML color to RGB:
function html2rgb($color){
return array(hexdec(substr($color, 0, 2)), hexdec(substr($color, 2, 2)), hexdec(substr($color, 4, 2)));
}
Here is a compact function to convert HTML color to RGB:
function html2rgb($color){
return array(hexdec(substr($color, 0, 2)), hexdec(substr($color, 2, 2)), hexdec(substr($color, 4, 2)));
}
The URI to TrackBack this entry is: http://jdev.blogsome.com/2007/03/21/html-to-rgb/trackback/
No comments yet.
RSS feed for comments on this post.
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>