Colors Attribute | Internet Development Index |
Defines multiple colors for a gradient fill. Read/write IVgGradientColorArray.
Applies To
Tag Syntax
<v: element colors="expression">
Script Syntax
element.colors="expression"
expression=element.colors
Remarks
Used to define an array consisting of paired values of percentages (VgFraction) and color (VgColor). The array creates a blended fill using each point in the array, starting at 0% (defined by Color ) and ending at 100% (defined by Color2). Intermediate colors along the way can be defined by assigning a color value to a percentage. The percent and color pair are not separated by a comma, but pairs are separated from each other by commas.
VML Standard Attribute
Example
The shape has a gradient fill consisting of four colors, starting with red, blending to yellow, then green, and finally blue.
<v:shape id="rect01" coordorigin="0 0" coordsize="200 200" strokecolor="red" style="top:1;left:1;width:50;height:50" path="m 1,1 l 1,200, 200,200, 200,1 x e"> <v:fill type="gradient" color="red" color2="blue" colors="30% yellow,70% green"/> </v:shape>