User Submitted Macro

RGB Color Evaluator

Written by Nathan Kelson

What it does

This macro allows you to evaluate a pixel color based off of the color name rather than an integer value that may change.

To install

Download the macro file umRGBColorEvaluator.mex and save it to your hard drive where you store your macro file(s). Import the macros into your existing macro file by clicking File, Import, Import Macros.

To use

To use it simply place your mouse over the pixel in question and run the macro. It will get the ‘Pixel Value’ information, it then changes that information to an RGB value, and then compares the RGB value to a list of known colors to determine which one color it most closely relates to and returns that color name.

If there is a color you would like to include, simply add it to the macro in the same format (Name, R value, G value, B value) and increase the number of times the macro repeats.

This is program independent and will get the “Pixel Value” and display that value first. Then it displays the RGB color values in three ‘variable prompt’ windows, Red, Green then Blue. Leave this information as is. Once it has evaluated the RGB it will also tell you the color name of the color most closely related to the RGB value. The 20 most common color names are included in the ‘RGB color evaluator’ macro. This macro calls the ‘More colors’ macro to get names of additional colors.

Nathan wins a Macro Express T-shirt for his submission.