Help for this page

Select Code to Download


  1. or download this
     $text_color = $image->colorAllocate($custom_colors->{text_color});
    
  2. or download this
     $text_color = $image->colorAllocate(@{ $custom_colors->{text_color} }
    +);
    
  3. or download this
    if( $custom_colors->{text_color} =~ m/#(..)(..)(..)/ ) {
        $text_color = $image->colorAllocate(map {hex($_)} ($1, $2, $3) )
    }