The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

ColorTransform::Monotone - Monotone color

VERSION

This document describes version 0.002 of ColorTransform::Monotone (from Perl distribution ColorTransforms-Standard), released on 2020-06-13.

FUNCTIONS

transform

Usage:

 transform(%args) -> any

Monotone color.

Change the hue of color to a single value. By default, a red monotone (hue=0) is produced. You can configure the hue option (0-360) to produce monotone of other hues, e.g. green (120) or blue (240).

This function is not exported.

Arguments ('*' denotes required arguments):

  • color* => color::rgb24

  • hue => num (default: 0)

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

ColorTransform::Grayscale

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.