<- Back to MMColor function list
MMColor_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 Type
- Number
- Format
- MMColor_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.)
- HexColor
- Related Items
- MMColor_GetColor, MMColor_SetColorComponent
- Examples
Example 1
Code:
MMColor_GetColorComponent("12CC34";"RGB";"Green")Result:
Returns 204Example 2
Code:
MMColor_GetColorComponent("12CC34";"HSL";"Luminance")Result:
Returns 44