[Table of Contents] [docx version]

PresentationML Reference Material - Table of Contents

animClr (Animate Color Behavior)

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 <animClr> element should be used as follows:

<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]

Parent Elements

childTnLst4.6.25); subTnLst4.6.78); tnLst4.6.87)

 

Child Elements

Subclause

by (By)

§4.6.21

cBhvr (Common Behavior)

§4.6.22

from (From)

§4.6.44

to (To)

§4.6.90

 

Attributes

Description

clrSpc (Color Space)

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).

dir (Direction)

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>