Main Page | Packages | Class Tree | Index | Help

xp.system

class GradientBrush

Object
  |
  +--xp.system.GradientBrush

Implemented Interfaces: IBrush
All Known Subclasses: LinearGradientBrush, RadialGradientBrush

class GradientBrush
extends Object

An abstract class that describes a gradient fill.

Classes that derive from GradientBrush describe different ways of interpreting gradient stops.


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Field Summary

public
alphas: Array
An array of alpha values for the corresponding colors in the colors array; valid values are 0–100. If the value is less than 0, Flash uses 0. If the value is greater than 100, Flash uses 100.

public
colors: Array
An array of RGB hex color values to be used in the gradient (for example, red is 0xFF0000, blue is 0x0000FF, and so on).

public
matrix: Object
A transformation matrix that is an object with either of the following two sets of properties.

public
ratios: Array
An array of color distribution ratios; valid values are 0–255. This value defines the percentage of the width where the color is sampled at 100 percent.

public
rotation: Number
The rotation in radians of the gradient.

public
type: String
Type of gradient. Either the string "linear" or the string "radial".

Constructor

public
GradientBrush ( colors: Array, rotation: Number, ratios: Array)
Construct a new brush object



Field Documentation

alphas

public var alphas: Array
An array of alpha values for the corresponding colors in the colors array; valid values are 0–100. If the value is less than 0, Flash uses 0. If the value is greater than 100, Flash uses 100.

colors

public var colors: Array
An array of RGB hex color values to be used in the gradient (for example, red is 0xFF0000, blue is 0x0000FF, and so on).

matrix

public var matrix: Object
A transformation matrix that is an object with either of the following two sets of properties.

ratios

public var ratios: Array
An array of color distribution ratios; valid values are 0–255. This value defines the percentage of the width where the color is sampled at 100 percent.

rotation

public var rotation: Number
The rotation in radians of the gradient.

type

public var type: String
Type of gradient. Either the string "linear" or the string "radial".


Constructor Documentation

GradientBrush

public function GradientBrush(colors: Array,
 rotation: Number,
 ratios: Array)
Construct a new brush object

Parameters:
colors
An array of ARGB hex color values to be used in the gradient (for example, red is 0xFFFF0000, blue is 0xFF0000FF, and so on).
rotation
rot The rotation in radians of the gradient.
ratios
An array of color distribution ratios; valid values are 0–255. This value defines the percentage of the width where the color is sampled at 100 percent.

The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc