DAColor Class

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

AnimatePropertyEnables color properties to be animated (vary over time).

DAColor Properties

BlueA read-only property with a DANumber value that represents the value of the blue component of the DAColor object.
GreenA read-only property with a DANumber value that represents the value of the green component of DAColor object.
HueA read-only property with a DANumber value that represents the value of the hue of DAColor object.
LightnessA read-only property with a DANumber value that represents the value of the lightness of DAColor object.
RedA read-only property with a DANumber value that represents the value of the red component of DAColor object.
SaturationA read-only property with a DANumber value that represents the value of the saturation of DAColor object.

DAColor Functions

This section contains reference material for the DAColor functions.

AnimateProperty

DAColor Class

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.

DAColor Properties

This section contains reference material for the DAColor properties.

Blue

DAColor Class

A read-only property with a DANumber value that represents the value of the blue component of the colorObj.

Syntax

colorObj.Blue

See Also

Red, Green

Green

DAColor Class

A read-only property with a DANumber value that represents the value of the green component of colorObj.

Syntax

colorObj.Green

See Also

Red, Blue

Hue

DAColor Class

A read-only property with a DANumber value that represents the value of the hue of colorObj.

Syntax

colorObj.Hue

See Also

Lightness, Saturation

Lightness

DAColor Class

A read-only property with a DANumber value that represents the value of the lightness of colorObj.

Syntax

colorObj.Lightness

See Also

Hue, Saturation

Red

DAColor Class

A read-only property with a DANumber value that represents the value of the red component of colorObj.

Syntax

colorObj.Red

See Also

Green, Blue

Saturation

DAColor Class

A read-only property with a DANumber value that represents the value of the saturation of colorObj.

Syntax

colorObj.Saturation

See Also

Hue, Lightness


Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.