Author image Claes Jakobsson
and 1 contributors

NAME

VS::Chart::Color::Gradient - A gradient color.

DESCRIPTION

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.

INTERFACE

CLASS METHODS

new ( COLOR, COLOR )

Creates a new gradient from COLOR to COLOR.

INSTANCE METHODS

set ( CONTEXT, SURFACE, WIDTH, HEIGHT )

Sets the the context to use this color.