line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Chart::Clicker::Decoration::Glass; |
2
|
|
|
|
|
|
|
$Chart::Clicker::Decoration::Glass::VERSION = '2.89'; |
3
|
1
|
|
|
1
|
|
91415
|
use Moose; |
|
1
|
|
|
|
|
701393
|
|
|
1
|
|
|
|
|
15
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
extends 'Chart::Clicker::Decoration'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# ABSTRACT: Under-chart gradient decoration |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
12730
|
use Graphics::Color::RGB; |
|
1
|
|
|
|
|
1169809
|
|
|
1
|
|
|
|
|
76
|
|
10
|
1
|
|
|
1
|
|
1273
|
use Graphics::Primitive::Operation::Fill; |
|
1
|
|
|
|
|
191801
|
|
|
1
|
|
|
|
|
54
|
|
11
|
1
|
|
|
1
|
|
807
|
use Graphics::Primitive::Paint::Solid; |
|
1
|
|
|
|
|
35916
|
|
|
1
|
|
|
|
|
417
|
|
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
|
|
14
|
no Moose; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
10
|
|
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.89 |
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) 2016 by Cory G Watson. |
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 |