Graphics::Primitive::Operation::Stroke - Draw along a path


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

Index


Code Index:

NAME

Top

Graphics::Primitive::Operation::Stroke - Draw along a path

DESCRIPTION

Top

Graphics::Primitive::Operation::Stroke represents a stroke operation to be performed on a path.

SYNOPSIS

Top

  use Graphics::Primitive::Operation::Stroke;

  my $stroke = Graphics::Primitive::Operation::Stroke->new;
  $stroke->brush->width(2);

METHODS

Top

Constructor

new

Creates a new Graphics::Primitive::Operation::Stroke. Uses a default Brush.

Instance Methods

brush

Set/Get this Stroke's Brush

AUTHOR

Top

Cory Watson, <gphat@cpan.org>

COPYRIGHT & LICENSE

Top


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

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

extends 'Graphics::Primitive::Operation';

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

use Graphics::Primitive::Brush;

has brush => (
    isa => 'Graphics::Primitive::Brush',
    is  => 'rw',
    default =>  sub { Graphics::Primitive::Brush->new },
    traits => [qw(Clone)]
);

__PACKAGE__->meta->make_immutable;

no Moose;
1;
__END__