DARKENCOLOR Method (System)
Description
This method returns a darkened version of the specified color.
Syntax
DkColor = Exec_Method( "SYSTEM", "DARKENCOLOR", Color, Amount )
Parameters
Name | Required | Description |
---|---|---|
Color | Yes | Color to darken. |
Amount | Yes | Amount by which to darken (between 0 and 1.0) |
Returns
The darkened color.
Remarks
N/A
Example
//// Get the system BTNFACE color and create a darker version of it.// Color = Get_Property( @Window, "VISUALSTYLECOLOR", SYSCOLOR_BTNFACE$ ) DkColor = Exec_Method( "SYSTEM", "DARKENCOLOR", Color, 0.2 )
See Also
ALPHACOLOR method, LIGHTENCOLOR method, MIXCOLORS method.