DirectAnimation Animated Header --DAStatic Functions Relevant to DAColor Objects DirectAnimation Animated Header --DAStatic Functions Relevant to DAColor Objects* Microsoft DirectAnimation SDK
*Contents  *Index  *Topic Contents
*Previous Topic: DAStatic Functions Relevant to DACamera Objects
*Next Topic: DAStatic Properties Relevant to DAColor Objects

DAStatic Functions Relevant to DAColor Objects



ColorHslAnim

DAStatics Class

Creates a DAColor object that represents a color described by its hue, saturation, and lightness values. The object's value at any given time depends on the values of h, s, and l.

lib.ColorHslAnim(
  h,
  s,
  l
  )

Parameters
h
A DANumber object specifying the hue or base color. 0.0 is red, 0.33 is green, and 0.67 is blue. This number is considered "modulo 1," which means, for example, that the numbers 1.67, and 0.67 are both considered to be 0.67. This value must be an animated number.
s
A DANumber object specifying saturation or intensity of the hue. If saturation is 0.0, the color produced is gray regardless of the hue value. This value must be an animated number.
l
A DANumber object specifying lightness or amount of white in the color. If lightness is 1.0, the color produced is white regardless of the hue and saturation values. Similarly, if lightness is 0.0, the color is black. This value must be an animated number.
Return Values

Returns the DAColor object.

Remarks

Hue, saturation, and lightness values can range from 0.0 to 1.0. If the corresponding number behavior has a value outside this range, then the number is considered modulo 1.

See Also

ColorRgbAnim


ColorHsl

DAStatics Class

Same as ColorHslAnim except that h, s, and l are non-animated numbers (doubles).

lib.ColorHsl(
  h,
  s,
  l
  )


ColorRgbAnim

DAStatics Class

Creates a DAColor object that represents a color described by its red, green, and blue intensity values. The object's value at any given time depends on the values of r, g, and b.

lib.ColorRgbAnim(
  r,
  g,
  b
  )

Parameters
r, g, and b
The DANumber objects specifying the red, green, and blue values, respectively. The value of each specifies that color's intensity, with 0.0 for no color and 1.0 for the highest possible intensity. These values must be animated numbers.
Return Values

Returns the DAColor object.

Remarks

Intensity values can range from 0.0 to 1.0. If the corresponding number behavior has a value outside this range, the integer part of the value is discarded and only the fractional part is used.

See Also

ColorHslAnim


ColorRgb

DAStatics Class

Same as ColorRgbAnim except that r, g, and b are non-animated numbers (doubles).

lib.ColorRgb(
  r,
  g,
  b
  )


ColorRgb255

DAStatics Class

Creates a DAColor object that represents a color described by its red, green, and blue intensity values. The behavior's value at any given time depends on the values of r, g, and b. These values can be in the range [0, 255].

lib.ColorRgb255(
  r,
  g,
  b
  )

Parameters
r, g, and b
The numbers (integers) specifying the red, green, and blue values, respectively. The value of each specifies that color's intensity, with 0 for no color and 255 for the highest possible intensity.
Return Values

Returns the DAColor object.

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.

*Top of Page