Help for this page

Select Code to Download


  1. or download this
    sub rgb2n{ unpack 'N', pack 'CCCC', 0, @_ }
    
    ...
            $v < $_ and return rgb2n( $map{ $_ }->( $v % 255 / 256 ) ) for
    + @map;
        }
    }
    
  2. or download this
    #! perl -slw
    use strict;
    ...
    magenta -> white        255     0..255  255         256