A DAColor is an object that represents a color behavior (this is an animated color, or a color whose value can change over time). At any given time, the value of the object is a color value that represents a specific color. Each color value consists of a combination of component values that specify either red, green and blue; or hue, saturation, and lightness.
Because component values can be animated numbers (DANumber objects), the value of the DAColor object can change over time as the animated numbers change.
This class inherits from DABehavior.
For relevant functions and properties in the DAStatics class, see the following topics.
DAColor Functions
AnimateProperty Enables color properties to be animated (vary over time).
DAColor Properties
Blue A read-only property with a DANumber value that represents the value of the blue component of the DAColor object. Green A read-only property with a DANumber value that represents the value of the green component of DAColor object. Hue A read-only property with a DANumber value that represents the value of the hue of DAColor object. Lightness A read-only property with a DANumber value that represents the value of the lightness of DAColor object. Red A read-only property with a DANumber value that represents the value of the red component of DAColor object. Saturation A read-only property with a DANumber value that represents the value of the saturation of DAColor object.
This section contains reference material for the DAColor functions.
Enables color properties to be animated (vary over time).
Note You can only use this function with Microsoft® DirectAnimation® versions later than 6.0; for example, version 6.00.06.xxx or later. Versions with this function are available in Microsoft Internet Explorer 5, Microsoft Windows® 98 Second Edition, and Windows 2000.
Syntax
colorObj.AnimateProperty( property, language, invoke, update )
Parameters
- property
- String that is either the name of the property to animate or the name of a scripting function to invoke that will set the property.
- language
- String that is name of the scripting language.
- invoke
- Boolean value that determines if the property is set directly or if a function is invoked. If false, the property is set directly. If true, a function is invoked.
- update
- A double value specifying how frequently the property is updated.
Return Value
Returns the DAColor object.
This section contains reference material for the DAColor properties.
A read-only property with a DANumber value that represents the value of the blue component of the colorObj.
Syntax
colorObj.Blue
See Also
A read-only property with a DANumber value that represents the value of the green component of colorObj.
Syntax
colorObj.Green
See Also
A read-only property with a DANumber value that represents the value of the hue of colorObj.
Syntax
colorObj.Hue
See Also
A read-only property with a DANumber value that represents the value of the lightness of colorObj.
Syntax
colorObj.Lightness
See Also
A read-only property with a DANumber value that represents the value of the red component of colorObj.
Syntax
colorObj.Red
See Also
A read-only property with a DANumber value that represents the value of the saturation of colorObj.
Syntax
colorObj.Saturation
See Also
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.