19.5.2 animClr
This animation element is responsible for animating the color of an object.
[Example: Consider trying to emphasize a shape by changing its fill color to scheme color accent2. The
<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>
end example]
Attributes
clrSpc (Color Space)
This attribute specifies the color space in which to interpolate the animation. 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 (19.7.23).
dir (Direction)
This attribute specifies which direction to cycle the hue around the color wheel. Values are clockwise or counter clockwise. Default is clockwise.
The possible values for this attribute are defined by the ST_TLAnimateColorDirection simple type (19.7.22).
[Note: The W3C XML Schema definition of this element’s content model (CT_TLAnimateColorBehavior) is located in A.3. end note]