Voting

: seven minus one?
(Example: nine)

The Note You're Voting On

jernberg at fairytale dot se
21 years ago
this might help someone, how to allocate an color from an html color-definition:

<?php
$fg
= "#ff0080";

$red = 100;
$green = 100;
$blue = 100;
if(
eregi( "[#]?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})", $fg, $ret ) )
{
$red = hexdec( $ret[1] );
$green = hexdec( $ret[2] );
$blue = hexdec( $ret[3] );
}

$text_color = ImageColorAllocate( $img1, $red, $green, $blue );
?>

<< Back to user notes page

To Top