line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Chart::Clicker::Decoration::Glass; |
2
|
|
|
|
|
|
|
$Chart::Clicker::Decoration::Glass::VERSION = '2.88'; |
3
|
1
|
|
|
1
|
|
24671
|
use Moose; |
|
1
|
|
|
|
|
530901
|
|
|
1
|
|
|
|
|
8
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
extends 'Chart::Clicker::Decoration'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# ABSTRACT: Under-chart gradient decoration |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
9543
|
use Graphics::Color::RGB; |
|
1
|
|
|
|
|
890814
|
|
|
1
|
|
|
|
|
54
|
|
10
|
1
|
|
|
1
|
|
998
|
use Graphics::Primitive::Operation::Fill; |
|
1
|
|
|
|
|
174001
|
|
|
1
|
|
|
|
|
46
|
|
11
|
1
|
|
|
1
|
|
1048
|
use Graphics::Primitive::Paint::Solid; |
|
1
|
|
|
|
|
42997
|
|
|
1
|
|
|
|
|
293
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
has 'background_color' => ( |
15
|
|
|
|
|
|
|
is => 'rw', |
16
|
|
|
|
|
|
|
isa => 'Graphics::Color::RGB', |
17
|
|
|
|
|
|
|
default => sub { |
18
|
|
|
|
|
|
|
Graphics::Color::RGB->new( |
19
|
|
|
|
|
|
|
red => 1, green => 0, blue => 0, alpha => 1 |
20
|
|
|
|
|
|
|
) |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
has 'glare_color' => ( |
26
|
|
|
|
|
|
|
is => 'rw', |
27
|
|
|
|
|
|
|
isa => 'Graphics::Color::RGB', |
28
|
|
|
|
|
|
|
default => sub { |
29
|
|
|
|
|
|
|
Graphics::Color::RGB->new( |
30
|
|
|
|
|
|
|
red => 1, green => 1, blue => 1, alpha => 1 |
31
|
|
|
|
|
|
|
) |
32
|
|
|
|
|
|
|
}, |
33
|
|
|
|
|
|
|
); |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
override('finalize', sub { |
36
|
|
|
|
|
|
|
my ($self) = @_; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
my $twentypofheight = $self->height * .20; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
$self->move_to(1, $twentypofheight); |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
$self->rel_curve_to( |
43
|
|
|
|
|
|
|
0, 0, |
44
|
|
|
|
|
|
|
$self->width / 2, $self->height * .30, |
45
|
|
|
|
|
|
|
$self->width, 0 |
46
|
|
|
|
|
|
|
); |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
$self->line_to($self->width, 0); |
49
|
|
|
|
|
|
|
$self->line_to(0, 0); |
50
|
|
|
|
|
|
|
$self->line_to(0, $twentypofheight); |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
my $fillop = Graphics::Primitive::Operation::Fill->new( |
53
|
|
|
|
|
|
|
paint => Graphics::Primitive::Paint::Solid->new( |
54
|
|
|
|
|
|
|
color => $self->glare_color |
55
|
|
|
|
|
|
|
) |
56
|
|
|
|
|
|
|
); |
57
|
|
|
|
|
|
|
$self->do($fillop); |
58
|
|
|
|
|
|
|
}); |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
61
|
|
|
|
|
|
|
|
62
|
1
|
|
|
1
|
|
11
|
no Moose; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
6
|
|
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
1; |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
__END__ |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=pod |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 NAME |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Chart::Clicker::Decoration::Glass - Under-chart gradient decoration |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 VERSION |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
version 2.88 |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head1 DESCRIPTION |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
A glass-like decoration. |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head2 background_color |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Set/Get the background L<color|Graphics::Color::RGB> for this glass. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head2 glare_color |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
Set/Get the glare L<color|Graphics::Color::RGB> for this glass. |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head1 AUTHOR |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
Cory G Watson <gphat@cpan.org> |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
This software is copyright (c) 2014 by Cold Hard Code, LLC. |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
101
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=cut |