MMColor

Create and enhance color elements

<- Back to MMColor function list

MMColor_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 Type
Text (HexColor)
Format
MMColor_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.

Related Items
MMColor_GetColor, MMColor_GetColorComponent
Examples

Example 1

Code:

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

Result:

Returns "D4007F".

Example 2

Code:

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

Result:

Returrns "69D400".