NAME
ColorTransform::Tint - Tint color
VERSION
This document describes version 0.002 of ColorTransform::Tint (from Perl distribution ColorTransforms-Standard), released on 2020-06-13.
FUNCTIONS
transform
Usage:
transform(%args) -> any
Tint color.
Examples:
Example #1:
transform(color => "ff0000", tint_color => "00ff00"); # -> "e31b00"
Example #2:
transform(color => "000000", tint_color => "00ff00"); # -> "000000"
Example #3:
transform(color => "ff0000", tint_color => "00ff00", percent => 75); # -> "d62800"
Tinting is similar to mixing, but the less luminance the color is the less it is tinted with the tint color. This has the effect of black color still being black instead of becoming tinted.
This function is not exported.
Arguments ('*' denotes required arguments):
color* => color::rgb24
percent => num (default: 50)
tint_color* => color::rgb24
Return value: (any)
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/ColorTransforms-Standard.
SOURCE
Source repository is at https://github.com/perlancar/perl-ColorTransforms-Standard.
BUGS
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.
SEE ALSO
Color::RGB::Util's tint_rgb_color
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
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.