Color2 Attribute

HTML (DHTML)

Color2 Attribute

Internet Development Index

Defines a second color for strokes. Read/write String.

Applies To

Stroke

Tag Syntax

<v:element color2="expression">

Script Syntax

element.color2="expression"

expression=element.color2

Remarks

A second color is used when a stroke's fill type is a pattern.

VML Standard Attribute

Example

The shape's stroke is a pattern fill where the fill is defined by the source image but the transparent background is defined by the second color.

   <v:shape id="rect01"
   strokecolor="red" fillcolor="red"
   style="top:20;left:20;width:30;height:30"
   path="m 1,1 l 1,200, 200,200, 200,1 x e">
   <v:stroke filltype="pattern" width="5pt" src="cylinder.gif" color2="green"/>
   </v:shape>