gradientEntry Element

The gradientEntry element defines gradient for the gradientFillStyle element. It describes a single point where gradient fill changes.

Syntax

<gradientEntry color="entryColor" ratio="entryRatio" [alpha="entryOpacity"]/>

Attributes

Name

Description

Value type

Optional

Default Value

ratio

Location of the point along the line the color gradually changes in units equalling 1/255 of the gradient line length.

The ratio attribute takes values from 1 to 255.

For radial gradients, the gradient line is the radius of the circle to which the shape is inscribed.

For linear gradients, the gradient line is a segment inscribed in the shape.

integer

no

color

Color of the point

color

no

 

alpha

Sets the transparancy. This attribute can take values from 0 to 255.

0 - completely transparent.

255 - completely opaque.

integer

yes

255

Parent Elements

gradientFillStyle

See Also

XML Schema Reference