graphics::primitive::paint::gradient::linear(3pm) [debian man page]
Graphics::Primitive::Paint::Gradient::Linear(3pm) User Contributed Perl Documentation Graphics::Primitive::Paint::Gradient::Linear(3pm)NAME
Graphics::Primitive::Paint::Gradient::Linear - Linear color blending
DESCRIPTION
Graphics::Primitive::Paint::Gradient::Linear is a gradient along a line.
SYNOPSIS
use Graphics::Primitive::Paint::Gradient::Linear;
my $gradient = Graphics::Primitive::Gradient::Linear->new(
line => Geometry::Primitive::Line->new(
start => Graphics::Primitive::Point->new(x => 0, y => 0),
end => Graphics::Primitive::Point->new(x => 0, y => 10),
)
);
$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.
line
The line along which the gradient should run.
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::Linear(3pm)
Check Out this Related Man Page
Graphics::Primitive::Driver::TextLayout(3pm) User Contributed Perl Documentation Graphics::Primitive::Driver::TextLayout(3pm)NAME
Graphics::Primitive::Driver::TextLayout - TextLayout role
DESCRIPTION
Graphics::Primitive::Driver::TextLayout is a role for Driver text layout engines.
SYNOPSIS
package MyLayout;
use Moose;
with 'Graphics::Primitive::Driver::TextLayout';
...
METHODS
component
Set/Get the component from which to draw layout information.
height
Set/Get this layout's height
slice
Implemented by role consumer. Given an offset and an optional size, returns a TextBox containing lines from this layout that come as
close to $size without exceeding it. This method is provided to allow incremental rendering of text. For example, if you have a
series of containers 80 units high, you might write code like this:
for(my $i = 0; $i < 3; $i++) {
$textbox = $layout->slice($i * 80, 80);
# render the text
}
width
Set/Get this layout's width. Defaults to the width of the component supplied.
AUTHOR
Cory Watson, "<gphat@cpan.org>"
COPYRIGHT & LICENSE
Copyright 2008-2010 by Cory G Watson.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.12.3 2010-08-21 Graphics::Primitive::Driver::TextLayout(3pm)
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)
Hey I have a problem in CrunchBang with Conky (I user openBox as DE)
When I open OpenOffice and it only happens with openOffice, the Conky stops updating every 5th second, and I can acctualy understand why 'cause even if I reset Conky it will not update, I have to sudo halt - not even sudo reboot... (0 Replies)
Hi,
Do anybody experience using awk or perl command to identify gradient of a straight line and The coefficient of determination/R-square value of a chart (R2) ?
Below is my input file :
t1 2 3 5 8
t2 0 2 0 2
t3 1 1 1 1
t4 50 70 80 90
.
.
.
Desired Output :
t1 2 3 5 8 0.6986... (10 Replies)
Hi,
we have the p6 server running AIX 7.1
it suddenly stops working.
I tried to re-cycle power but it keeps stopping at C19220FF.
Activate the service processor pinhole reset switch but still stops at the same code.
Error logs:
1. 501A1181 2016-06-08 22:06:20 'Service Process'... (1 Reply)