A ColorBvr is an object that represents a color behavior. At any given time, the value of the behavior 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 intensity; or hue, saturation, and lightness.
Because component values are number behaviors (NumberBvr objects), the value of the color behavior may change over time as the number behaviors change.
For more information about behaviors, see the Behavior class.
For relevant methods and fields from the Statics class, see the following topics.
ColorBvr Methods
getBlue Creates a number behavior that represents the value of the blue component of the corresponding color behavior. getGreen Creates a number behavior that represents the value of the green component of the corresponding color behavior. getHue Creates a number behavior that represents the value of the hue of the corresponding color behavior. getLightness Creates a number behavior that represents the value of the lightness of the corresponding color behavior. getRed Creates a number behavior that represents the value of the red component of the corresponding color behavior. getSaturation Creates a number behavior that represents the value of the saturation of the corresponding color behavior. newUninitBvr Enables you to refer to a color behavior before that behavior has been defined.
Creates a number behavior that represents the value of the blue component of the corresponding color behavior.
Syntax
public NumberBvr getBlue( );
Return Value
Returns the NumberBvr object.
See Also
Creates a number behavior that represents the value of the green component of the corresponding color behavior.
Syntax
public NumberBvr getGreen( );
Return Value
Returns the NumberBvr object.
See Also
Creates a number behavior that represents the value of the hue of the corresponding color behavior.
Syntax
public NumberBvr getHue( );
Return Value
Returns the NumberBvr object.
See Also
Creates a number behavior that represents the value of the lightness of the corresponding color behavior.
Syntax
public NumberBvr getLightness( );
Return Value
Returns the NumberBvr object.
See Also
Creates a number behavior that represents the value of the red component of the corresponding color behavior.
Syntax
public NumberBvr getRed( );
Return Value
Returns the NumberBvr object.
See Also
Creates a number behavior that represents the value of the saturation of the corresponding color behavior.
Syntax
public NumberBvr getSaturation( );
Return Value
Returns the NumberBvr object.
See Also
Enables you to refer to a color behavior before that behavior has been defined. With this method you can create the behavior and use it in the definition of other behaviors, but not actually define its contents until some later point. (This is accomplished with the init method, which is available on all behaviors.) The system generates a run-time error if you initialize a non-uninitialized behavior, initialize an uninitialized behavior that has already been initialized, or run an initialized behavior that has not yet been initialized.
Syntax
public static ColorBvr newUninitBvr( );
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.