<- Back to MMColor function list
MMColor_GetColor
- Description
This function takes individual Component values and returns the HexColor equivalent for the specified Color Space.
- Return Type
- Text (HexColor)
- Format
- MMColor_GetColor ( ColorSpace ; Component1 ; Component2 ; Component3 ; Component4 )
- Required Parameters
- ColorSpace
The Color Space that defines the remaining Component Parameters. Use "RGB", "HSV", "HSL", "CMY", or "CMYK".
- Component1
Depending on the ColorSpace, specify the following Component Value:
- "RGB" Color Space - Specify the Red Component. (0-255)
- "HSV" Color Space - Specify the Hue Component. (0-359)
- "HSL" Color Space - Specify the Hue Component. (0-359)
- "CMY" Color Space - Specify the Cyan Component. (0-100)
- "CMYK" Color Space - Specify the Cyan Component. (0-100)
- Component2
Depending on the ColorSpace, specify the following Component Value:
- "RGB" Color Space - Specify the Green Component. (0-255)
- "HSV" Color Space - Specify the Saturation Component. (0-100)
- "HSL" Color Space - Specify the Saturation Component. (0-100)
- "CMY" Color Space - Specify the Magenta Component. (0-100)
- "CMYK" Color Space - Specify the Magenta Component. (0-100)
- Component3
Depending on the ColorSpace, specify the following Component Value:
- "RGB" Color Space - Specify the Blue Component. (0-255)
- "HSV" Color Space - Specify the Value Component. (0-100)
- "HSL" Color Space - Specify the Luminance Component. (0-100)
- "CMY" Color Space - Specify the Yellow Component. (0-100)
- "CMYK" Color Space - Specify the Yellow Component. (0-100)
- Component4
Depending on the ColorSpace, specify the following Component Value:
- "CMYK" Color Space - Specify the Black Component. (0-100)
- ColorSpace
- Related Items
- MMColor_GetColorComponent, MMColor_SetColorComponent
- Examples
Example 1
Code:
MMColor_GetColor("RGB"; 128 ; 0 ; 255 )Result:
Returns "8000FF"Example 2
Code:
MMColor_GetColor("HSV"; 90 ; 75 ; 75 )Result:
Returns "77BF30"