Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

geometry::primitive::rectangle(3pm) [debian man page]

Geometry::Primitive::Rectangle(3pm)			User Contributed Perl Documentation		       Geometry::Primitive::Rectangle(3pm)

NAME
Geometry::Primitive::Rectangle - 4 sided polygon DESCRIPTION
Geometry::Primitive::Rectangle a space defined by a point, a width and a height. SYNOPSIS
use Geometry::Primitive::Rectangle; my $poly = Geometry::Primitive::Rectangle->new(); $poly->add_point($point1); $poly->height(100); $poly->width(100); ATTRIBUTES
height Set/Get the height of this Rectangle. origin Set/Get the origin of this rectangle. width Set/Get the width of this Rectangle. METHODS
new Creates a new Geometry::Primitive::Rectangle area Returns the area of this rectangle. get_points Get the points that make up this Rectangle. point_end Get the end point. Returns the origin. Provided for Shape role. point_start Get the start point. Returns the origin. Provided for Shape role. scale ($amount) Scales the hieght and width of this rectangle by the amount specified. AUTHOR
Cory Watson <gphat@cpan.org> COPYRIGHT &; LICENSE You can redistribute and/or modify this code under the same terms as Perl itself. perl v5.10.1 2010-01-10 Geometry::Primitive::Rectangle(3pm)

Check Out this Related Man Page

Graphics::Primitive::Paint::Gradient::Radial(3pm)	User Contributed Perl Documentation	 Graphics::Primitive::Paint::Gradient::Radial(3pm)

NAME
Graphics::Primitive::Paint::Gradient::Radial - Radial color blending DESCRIPTION
Graphics::Primitive::Paint::Gradient::Radial is a color blend between two circles. SYNOPSIS
use Graphics::Primitive::Paint::Gradient::Radial; my $gradient = Graphics::Primitive::Gradient::Radial->new( start => Geometry::Primitive::Circle->new( origin => 0, 0, radius => 5 ), end => Geometry::Primitive::Circle->new( origin => 50, 25, radius => 5 ) ); $gradient->add_stop(0.0, $color1); $gradient->add_stop(1.0, $color2); METHODS
Constructor new Creates a new Graphics::Primitive::Gradient Instance Methods add_stop Adds a color stop at the specified position colors Hashref of colors and their stops. The stops are the keys. end The "end" circle. start The "start" circle. stop_count Count of stops added to this Gradient. stops Get the keys of all color stops. AUTHOR
Cory Watson <gphat@cpan.org> COPYRIGHT &; LICENSE Copyright 2008-2010 by Cory G Watson. You can redistribute and/or modify this code under the same terms as Perl itself. perl v5.12.3 2010-08-21 Graphics::Primitive::Paint::Gradient::Radial(3pm)
Man Page

4 More Discussions You Might Find Interesting

1. Programming

Conversion of Hexa Value in String From to Primitive Hexavalue.

Hi, In My Program I have HEXA value in a string array as below : char hexa="0xabcd1234"; //This is how I'm getting source data. Actaully I want this hexa value to be decremented with -1 and store it in another string as "0xabcd1234". Can any body help me how to do that..? I... (1 Reply)
Discussion started by: S.Vishwanath
1 Replies

2. Linux

User ID width

in terms of bits, what is the width of a User ID? seems like I remember it being 32-bit (maybe wrong) but I can't find anything anywhere on ther subject. (4 Replies)
Discussion started by: thmnetwork
4 Replies

3. UNIX for Dummies Questions & Answers

poly to mono alphabet for every 2nd line

Hi, Can anyone teach me by using perl. let say i have an input file that content like below: ->line_01 aaabbbDDDTTTUSSy ->line_02 cccdddEEESSSGTTT ->line_03 xxxxyyyyzzzzzzzzzz want the above input file content to become output file like below (every 2nd line after ->... become mono... (0 Replies)
Discussion started by: eisya10
0 Replies

4. Programming

C++, format of function call

hi , int*ptr=new Rectangle() is possible or not pls exp me ? (2 Replies)
Discussion started by: Boby120677
2 Replies