ColorTransform::Weight - Weight each component (R, G, B) of the color
This document describes version 0.002 of ColorTransform::Weight (from Perl distribution ColorTransforms-Standard), released on 2020-06-13.
Usage:
transform(%args) -> any
Weight each component (R, G, B) of the color.
Weighting is used to create grayscale/sepia/duotone transforms.
See: http://www.techrepublic.com/blog/howdoi/how-do-i-convert-images-to-grayscale-and-sepia-tone-using-c/120
This function is not exported.
Arguments ('*' denotes required arguments):
b1* => float
b2* => float
b3* => float
color* => color::rgb24
g1* => float
g2* => float
g3* => float
r1* => float
r2* => float
r3* => float
Return value: (any)
Please visit the project's homepage at https://metacpan.org/release/ColorTransforms-Standard.
Source repository is at https://github.com/perlancar/perl-ColorTransforms-Standard.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=ColorTransforms-Standard
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
ColorTransform::Darken
ColorTransform::Lighten
Color::RGB::Util's tint_rgb_color
tint_rgb_color
perlancar <perlancar@cpan.org>
This software is copyright (c) 2020 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install ColorTransforms::Standard, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ColorTransforms::Standard
CPAN shell
perl -MCPAN -e shell install ColorTransforms::Standard
For more information on module installation, please visit the detailed CPAN module installation guide.