Name | CNSImage_SetHexColorComponent |
---|
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 | CNSImage_SetHexColorComponent ( HexColor ; ColorSpace ; Component ; Value ) |
---|
Required Parameters | HexColor The Color you need to modify.
ColorSpaceThe Color Space that contains the Component you want to modify. (For Example, the “HSL” Color Space.)
ComponentThe Component to modify. (For Example, the “Hue” Component.)
ValueThe new Value for the Component.
|
---|
Examples | - Example 1
Returns "D4007F". CNSImage_SetHexColorComponent( "D40000" ; "RGB" ; "Blue" ; 127 )
- Example 2
Returrns "69D400". CNSImage_SetHexColorComponent( "D40000" ; "HSL" ; "Hue" ; 90 )
|
---|