Aztec® Programming Language

Version 1.0 Alpha

Copyright © 2010-2013

Cold Spring® Development Group

All Rights Reserved

Download Aztec

Site Help

aztec.display.Color

public class Color from<Base>

Base

Color

The Color class represents a single color which can be drawn in an Aztec window. A color object is made up of three separate components, a red, green and blue component. Each component can have a value from 0 to 255, supporting more than 16 million separate colors. This color can be attached to any window to specify the default foreground and background colors for a window, and can also be used with the drawing methods in the Canvas control.

Color Methods

Color() Constructor for the Color class using separate RGB values
Color() Constructor for the Color class using another Color object
Red() Returns the Red component of the Color object
Green() Returns the Green component of the Color object
Blue() Returns the Blue component of the Color object

Derived Classes

See Also

 


Color()

public method Color(int Red, int Green, int Blue, Display Target = null)

Parameters

Red

Red component of the color (0-255)

Green

Green component of the color (0-255)

Blue

Blue component of the color (0-255)

Target

Display object where color is created and used

Return Value

None

Description

Constructor for the Color class. The color is based on the red, green and blue components passed in. The local display is used if Target is null.

 

Color Class


Color()

public method Color(Color ColorRef)

Parameters

ColorRef

Color to be copied for this new color

Return Value

None

Description

Constructor for the Color class. The new color uses the same color as the incoming Color object.

 

Color Class


Red()

public method<int> Red()

Parameters

None

Return Value

Red component of color

Description

This method returns the Red component of the Color object (0-255).

 

Color Class


Green()

public method<int> Green()

Parameters

None

Return Value

Green component of color

Description

This method returns the Green component of the Color object (0-255).

 

Color Class


Blue()

public method<int> Blue()

Parameters

None

Return Value

Blue component of color

Description

This method returns the Blue component of the Color object (0-255).

 

Color Class

 

Copyright © 2010-2013

Cold Spring Development Group

All Rights Reserved

Download Aztec