Color Routines

These subroutines allow you to set or change the color of the "current object". In most cases, you have to have assigned a color to an object via some other API first. These API's allow you to further change that color. You can also pre-define the colors you want to use in your charts, and then refer to them by name. See ColorSpec for more information on working with colors.

.COLOR INITIALIZE

Initialize a Color Object.

.COLOR SET CURRENT

Set the "current" Color Object to be a previously initialized Color Object.

.COLOR GET NAME

Get the name of the "current" Color Object.

.COLOR SET DEFAULT

Clear the "current" Color Object.

.COLOR SET COLOR

Set the color of the "current" Color Object.

.COLOR SET COLOR:RGB

Set the individual colors of the "current" Color Object.

.COLOR SET COLOR:R

Set the Red value of the "current" Color Object.

.COLOR SET COLOR:G

Set the Green value of the "current" Color Object.

.COLOR SET COLOR:B

Set the Blue value of the "current" Color Object.

.COLOR SET COLOR:A

Set the Alpha value of the "current" Color Object.

.COLOR SET GLASS

A complex shading effect that emulates tinted glass or semi-transparent plastic material.

.COLOR SET SOFT

Assigns a special shading effect that looks like gradient coloring to the "current" color object.

.COLOR SET TRANSPARENT

Set the "current" Color Object to be Transparent.

.COLOR SET OPAQUE

Set the "current" Color Object to be Opaque.

.COLOR SET METAL

Set the direction for brightness modulation to create a Metal color effect for the "current" Color Object.

.COLOR SET GOLD

Sets the color of the "current" Color Object to be Yellow (FFEE44) and sets the direction for brightness modulation to create a Gold Metal color effect.

.COLOR SET SILVER

Sets the color of the "current" Color Object to be Grey (DDDDDD) and sets the direction for brightness modulation to create a Silver Metal color effect.

.COLOR SET BRUSH METAL

Set the strength of the texture to create a Brushed Metal Effect for the "current" Color Object.

.COLOR SET BRIGHTNESS

Set the brightness of the "current" Color Object.

.COLOR SET HALF COLOR

Set the intensity of the "current" Color Object to be one half of the normal intensity.

.COLOR SET DASH LINE

Set the dash line pattern for the "current" Color Object.

.COLOR SET GRADIENT

Changes the "current" color object to have a two-point linear gradient color.

Comments:

Read what other users have said about this page or add your own comments.


-- JeanNeron - 2011-11-24


This topic: Main > WebHome > APPX510Features > CDChartDirectorDesignerAPI > CDChartDirectorColorRoutines
Topic revision: r4 - 2012-01-19 - JeanNeron
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback