Product Logo

MMColor

Create and enhance color elements

Functions

MMColor_SetColorComponent

NameMMColor_SetColorComponent
Description

This function updates the HexColor parameter you specify by adjusting the Value of the Component of the Color Space you specify. For example, you could set the Hue of the HSL Color Space of your HexColor.

Return TypeText (HexColor)
FormatMMColor_SetColorComponent ( HexColor ; ColorSpace ; Component ; Value )
Required Parameters
HexColor

The Color you need to modify.

ColorSpace

The Color Space that contains the Component you want to modify. (For Example, the “HSL” Color Space.)

Component

The Component to modify. (For Example, the “Hue” Component.)

Value

The new Value for the Component.

Examples
Example 1

Returns "D4007F".

MMColor_SetColorComponent( "D40000" ; "RGB" ; "Blue" ; 127 )
Example 2

Returrns "69D400".

MMColor_SetColorComponent( "D40000" ; "HSL" ; "Hue" ; 90 )