Get3dBorderColors

int Get3dBorderColors (int baseColor, int *highlightColor, int *lightColor, int *shadowColor, int *darkShadowColor);

Purpose

Takes an RGB value for the base color of an object and returns the RGB values for colors that you can use to make the object look three-dimensional.

The colors that Get3dBorderColors returns are similar to the colors that Windows uses to draw three-dimensional objects.

Parameters

Input
Name Type Description
baseColor integer RGB value for the color of an object.
Output
Name Type Description
highlightColor integer The RGB value for the highlight color.

Use this color to indicate the edges of the object that are in the most direct light.

You can pass NULL.
lightColor integer The RGB value for the light color.

Use this color to indicate the transition between the highlight color and the base color of the object.

Currently, lightColor is always the same as baseColor.

You can pass NULL.
shadowColor integer The RGB value for the shadow color.

Use this color to indicate the edges of the object that are angled away from the light.

You can pass NULL.
darkShadowColor integer The RGB value for the dark shadow color.

Use this color to indicate the edges of the object that are angled farthest away from the light.

Currently, darkShadowColor is always black.

You can pass NULL.

Return Value

Name Type Description
status integer Return value indicating whether the function was successful. A negative number indicates that an error occurred.

Code Error Message String
xx Success