Help for this page

Select Code to Download


  1. or download this
    my @redmap = map {  int( $r * $_)  } 0..255;
    my @greenmap = map {  int( $g * $_)  } 0..255;
    ...
     $newimg->map( red=>\@redmap, green=>\@greenmap, blue=>\@bluemap );
    
     $newimg->filter(type=>'contrast', intensity=> $c);
    
  2. or download this
    my @redmap = map {  int( $r + $_)  } 0..255;