Product Logo

MMColor

Create and enhance color elements

Functions

MMColor_GetColorComponent

NameMMColor_GetColorComponent
Description

This function will return the value of a specific Component (eg. the Green component or the Luminance component) of the specified HexColor from the specified Color Space.

Return TypeNumber
FormatMMColor_GetColorComponent ( HexColor ; ColorSpace ; Component )
Required Parameters
HexColor

The Color to extract the Component from.

ColorSpace

The Color Spaces that contains the Component you want to retrieve.

Component

The Component to retrieve. (For Example, the “Green” Component.)

Examples
Example 1

Returns 204

MMColor_GetColorComponent( "12CC34" ; "RGB" ; "Green" )
Example 2

Returns 44

MMColor_GetColorComponent( "12CC34" ; "HSL" ; "Luminance" )