1 package LaTeX::TikZ::Mod::Color;
8 LaTeX::TikZ::Mod::Color - A modifier that sets the line color.
16 our $VERSION = '0.01';
20 with 'LaTeX::TikZ::Mod';
30 sub cover { $_[0]->color eq $_[1]->color }
34 sub apply { 'color=' . $_[0]->color }
36 use LaTeX::TikZ::Interface color => sub {
39 __PACKAGE__->new(color => $_[0]);
42 __PACKAGE__->meta->make_immutable;
46 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
48 You can contact me by mail or on C<irc.perl.org> (vincent).
52 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>.
53 I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
57 You can find documentation for this module with the perldoc command.
61 =head1 COPYRIGHT & LICENSE
63 Copyright 2010 Vincent Pit, all rights reserved.
65 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
69 1; # End of LaTeX::TikZ::Mod::Color