Source
VS::Chart::Color::Gradient - A gradient color.
This color renders as a gradient from one color to the other.
First color is positioned at the top of the image and the second on the bottom.
- new ( COLOR,
COLOR )
-
Creates a new gradient from COLOR to COLOR.
- set ( CONTEXT,
SURFACE,
WIDTH,
HEIGHT )
-
Sets the the context to use this color.
syntax highlighting: