| 1 | package Graphics::Color; | ||||||||||
| 2 | 8 | $Graphics::Color::VERSION = '0.31'; | |||||||||
| 3 | 8 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 8 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 8 | with qw(MooseX::Clone Graphics::Color::Equal MooseX::Storage::Deferred); | |||||||||
| 7 | |||||||||||
| 8 | # ABSTRACT: Device and library agnostic color spaces. | ||||||||||
| 9 | |||||||||||
| 10 | |||||||||||
| 11 | 6 | ▶ | sub derive { | ||||||||
|
Subroutine
derive: called CC=4 SCAR=14.1
Pod
documented
| |||||||||||
| 12 | 6 | my ($self, $args) = @_; | |||||||||
| 13 | |||||||||||
| 14 | 6 | ▶ | return unless ref($args) eq 'HASH'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 6 | my $new = $self->clone; | |||||||||
| 16 | 6 | foreach my $key (keys %{ $args }) { | |||||||||
| 17 | 6 | ▶ | $new->$key($args->{$key}) if($new->can($key)); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | } | ||||||||||
| 19 | 6 | return $new; | |||||||||
| 20 | } | ||||||||||
| 21 | |||||||||||
| 22 | |||||||||||
| 23 | 0 | ▶ | sub equal_to { | ||||||||
|
Subroutine
equal_to: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 24 | 0 | die("Override me!"); | |||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | 8 | __PACKAGE__->meta->make_immutable; | |||||||||
| 28 | |||||||||||
| 29 | 8 | ▶ | no Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 30 | 8 | 1; | |||||||||
| 31 | |||||||||||
| 32 | __END__ | ||||||||||