NAME

Graphics::Grid::Grill - Grill grob

VERSION

version 0.001

SYNOPSIS

use Graphics::Grid::Grill;
use Graphics::Grid::GPar;
my $rect = Graphics::Grid::Grill->new(
        h => unit([0.25, 0.5, 0.75]),
        v => unit([0.25, 0.5, 0.75]),
        gp => Graphics::Grid::GPar->new(col => "grey"));

# or use the function interface
use Graphics::Grid::Functions qw(:all);
my $rect = grill(%params);

DESCRIPTION

This class represents a grill graphical object.

ATTRIBUTES

h

A unit object indicating the horizontal location of the vertical grill lines. Default is unit([0.25, 0.5, 0.75]).

v

A unit object indicating the vertical location of the horizontal grill lines. Default is unit([0.25, 0.5, 0.75]).

gp

An object of Graphics::Grid::GPar. Default is an empty gpar object.

Default is gpar(col => "grey").

vp

A viewport object. When drawing a grob, if the grob has this attribute, the viewport would be temporily pushed onto the global viewport stack before drawing takes place, and be poped after drawing. If the grob does not have this attribute set, it would be drawn on the existing current viewport in the global viewport stack.

SEE ALSO

Graphics::Grid::Functions

Graphics::Grid::Grob

AUTHOR

Stephan Loyd <sloyd@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018-2023 by Stephan Loyd.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.