MMColor

Create and enhance color elements

Functions

There are two ways to view the MMColor function reference, the Function Reference below, and the Function Reference Browser in a new window.

Function Reference

The Function Reference is a complete reference for MMColor functions. Click on a function title to view more information which includes the function description, parameter information, example usage and more.

Function Reference Browser

function_browser

The Function Reference Browser offers better navigation for the MMColor functions, you can Launch Function Browser in a new window.


Function Reference

  • MMColor_Configure

    Calling this function with no parameters will open the MMColor Configuration Dialog. You can optionally open to a specific tab by specifying the name of the tab as the "Option" parameter. This... read more

  • MMColor_CreateColorImage

    This function takes a HexColor and creates a container image of the specified width and height (defaulting to 25x25) and returns that image to you. The native image type is a PNG (which allows for... read more

  • MMColor_DecToHex

    Returns the Hex representation of the Decimal number entered in the "Dec" parameter, optionally with leading-zeros depending on the "NumDigits"... read more

  • MMColor_GetColor

    This function takes individual Component values and returns the HexColor equivalent for the specified Color... read more

  • MMColor_GetColorComponent

    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... read more

  • MMColor_GetGrayscale

    This function takes any Color you specify and returns the Grayscale equivalent of that... read more

  • MMColor_GetImageColor

    This function will take an Image created with MMColor_CreateColorImage and return the associated color of that image. It will only work with Container Objects created directly with... read more

  • MMColor_HexToDec

    Returns the Decimal representation of the Hex number passed to the "Hex" parameter.... read more

  • MMColor_IsWebSafe

    This function checks to see if the HexColor you specified will correctly be rendered on a... read more

  • MMColor_Register

    You can use this function to Register the plug-in from a script instead of through the Configuration Dialog. This is useful when the plug-in is being distributed to many computers, allowing you to... read more

  • MMColor_SetColorComponent

    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... read more

  • MMColor_SetLayoutPartHeights

    To properly display the color space sliders at specific pixel locations on layouts set to "List View", you need to let the plug-in know the heights of the Layout Parts of your layout. Once you have... read more

  • MMColor_ShowColorPicker

    This function will show the system Color Picker allowing the user to select a color from it. It returns the HexColor representation of the chosen color. To start the Color Picker with a specific... read more

  • MMColor_ShowColorSpaceSlider

    This function will bring up a dialog with 3 to 4 Sliders (depending on the Color Space) allowing the user to manipulate the sliders or type in literal values to get the exact color they want. The... read more

  • MMColor_ShowSlider

    This function will bring up a dialog with a Sliders and Edit field allowing the user to select a value for a Color Space Component. By specify the Color Space and the Component parameters, the... read more

  • MMColor_Version

    This function returns the current version of MMColor. This function is useful for testing whether or not the plug-in is installed and enabled. If you call this function and a question mark ("?") is... read more

  • MMColor_VersionAutoUpdate

    This function returns an Auto Update friendly Version number of MMColor. The format of this version number is always exactly 8 digits long. The first two digits represent the major version of the... read more

  • Reference: ColorSpace

    These are the valid "ColorSpace" parameter values: RGB HSV HSL CMY ... read more

  • Reference: Component

    These are the valid "Component" parameter values: RGB Red, R Green, G Blue, B HSV Hue, H Saturation, S Value, V HSL ... read more

  • Reference: HexColor

    These are all valid "HexColor" parameter values: 0099FF - (3 plain Hexidecimal digits butted up against each other) #0099FF - (HTML style) 0x0099FF - (Programing style) 09F - (CSS Shorthand... read more