org.freedesktop.cairo

Class Gradient

public class Gradient extends Pattern

Method Summary
voidaddColorStop(double offset, double red, double green, double blue)
Adds a new color stop to the pattern.
voidaddColorStop(double offset, double red, double green, double blue, double alpha)
Adds a new color stop to the pattern.

Method Detail

addColorStop

public void addColorStop(double offset, double red, double green, double blue)
Adds a new color stop to the pattern.

Parameters: offset The offset length red The value to use for red green The value to use for green blue The value to use for blue

addColorStop

public void addColorStop(double offset, double red, double green, double blue, double alpha)
Adds a new color stop to the pattern.

Parameters: offset The offset length red The value to use for red green The value to use for green blue The value to use for blue alpha alpha for the color