<animClr>
(Animate Color Behavior)
This animation element is responsible for animating the color of an object.
<p:animClr clrSpc="rgb"> <p:cBhvr> <p:cTn id="1" dur="2000" fill="hold"/> <p:tgtEl> <p:spTgt spid="1"/> </p:tgtEl> <p:attrNameLst> <p:attrName>fillcolor</p:attrName> </p:attrNameLst> </p:cBhvr> <p:to> <a:schemeClr val="accent2"/> </p:to> </p:animClr>
Child Elements |
Subclause |
---|---|
|
|
|
|
|
|
|
Attributes |
Description |
---|---|
|
This attribute specifies the color space in which to interpolate the animation. Valid values for example can be HSL & RGB.
The values for from/to/by/etc. can still be specified in any supported color format without affecting the color space within which the animation happens.
The RGB color space is best used for doing animations between two different colors since it doesn't require going through any other hues between the two colors specified. The HSL space is useful for animating through a rainbow of colors or for modifying just the saturation by 30% for example. The possible values for this attribute are defined by the ST_TLAnimateColorSpace simple type (§4.8.27). |
|
This attribute specifies which direction to cycle the hue around the color wheel. Valid values are clockwise or counter clockwise. Default is clockwise. The possible values for this attribute are defined by the ST_TLAnimateColorDirection simple type (§4.8.26). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_TLAnimateColorBehavior">
<sequence>
<element name="cBhvr" type="CT_TLCommonBehaviorData" minOccurs="1" maxOccurs="1"/>
<element name="by" type="CT_TLByAnimateColorTransform" minOccurs="0" maxOccurs="1"/>
<element name="from" type="a:CT_Color" minOccurs="0" maxOccurs="1"/>
<element name="to" type="a:CT_Color" minOccurs="0" maxOccurs="1"/>
</sequence>
<attribute name="clrSpc" type="ST_TLAnimateColorSpace" use="optional"/>
<attribute name="dir" type="ST_TLAnimateColorDirection" use="optional"/>
</complexType>