1 package LaTeX::TikZ::Mod::Fill;
8 LaTeX::TikZ::Mod::Fill - A modifier that fills a closed path with a color.
16 our $VERSION = '0.03';
18 use LaTeX::TikZ::Interface;
24 This class consumes the L<LaTeX::TikZ::Mod> role, and as such implements the L</tag>, L</covers>, L</declare> and L</apply> methods.
28 with 'LaTeX::TikZ::Mod';
54 sub covers { $_[0]->color eq $_[1]->color }
66 sub apply { 'fill=' . $_[0]->color }
68 LaTeX::TikZ::Interface->register(
72 __PACKAGE__->new(color => $_[0]);
76 __PACKAGE__->meta->make_immutable;
80 L<LaTeX::TikZ>, L<LaTeX::TikZ::Mod>.
84 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
86 You can contact me by mail or on C<irc.perl.org> (vincent).
90 Please report any bugs or feature requests to C<bug-latex-tikz at rt.cpan.org>, or through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=LaTeX-TikZ>.
91 I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
95 You can find documentation for this module with the perldoc command.
99 =head1 COPYRIGHT & LICENSE
101 Copyright 2010,2011,2012,2013,2014,2015 Vincent Pit, all rights reserved.
103 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
107 1; # End of LaTeX::TikZ::Mod::Fill