Graphics::Primitive::Operation::Fill - Paint inside a path


Graphics-Primitive documentation Contained in the Graphics-Primitive distribution.

Index


Code Index:

NAME

Top

Graphics::Primitive::Operation::Fill - Paint inside a path

DESCRIPTION

Top

Graphics::Primitive::Operation::Fill represents a fill operation to be performed on a path.

SYNOPSIS

Top

  use Graphics::Primitive::Operation::Fill;

  my $fill = Graphics::Primitive::Operation::Fill->new;
  $fill->paint(Graphics::Primitive::Paint::Solid->new);

METHODS

Top

Constructor

new

Creates a new Graphics::Primitive::Operation::Fill.

Instance Methods

paint

Set/Get the Paint to use for this fill.

AUTHOR

Top

Cory Watson, <gphat@cpan.org>

COPYRIGHT & LICENSE

Top


Graphics-Primitive documentation Contained in the Graphics-Primitive distribution.

package Graphics::Primitive::Operation::Fill;
use Moose;
use MooseX::Storage;

extends 'Graphics::Primitive::Operation';

with 'MooseX::Clone';
with Storage (format => 'JSON', io => 'File');

has paint => (
    isa => 'Graphics::Primitive::Paint',
    is  => 'rw',
    required => 1,
    traits => [qw(Clone)]
);

__PACKAGE__->meta->make_immutable;

no Moose;
1;
__END__