NAME
Data::URIID::Colour - Extractor for identifiers from URIs
VERSION
version v0.10
SYNOPSIS
use Data::URIID::Colour;
my $colour = Data::URIID::Colour->new(rgb => '#FF0000');
This module represents a single colour.
This package inherits from Data::URIID::Base.
METHODS
new
my $colour = Data::URIID::Colour->new( option => value, ... );
Returns a new object for the given colour. The following options are defined:
rgb
-
The RGB value in hex notation. E.g.
#FF0000
. extractor
-
optionally, an instance of Data::URIID.
rgb
my $rgb = $colour->rgb;
Returns the colour in six digit hex notation with prepended pound (#
) if successful or die
otherwise. The returned value is suitable for use in CSS.
AUTHOR
Löwenfelsen UG (haftungsbeschränkt) <support@loewenfelsen.net>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2023-2024 by Löwenfelsen UG (haftungsbeschränkt) <support@loewenfelsen.net>.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)