MacHouse Software |
Last updated: August 05, 2011
|
Color2Code - User's Guide |
1. Installing and uninstalling Color2Code Please read the README file that comes with the application. Or click here to download one. Click here to download a sample package for Pixel Scan that contains 144 swatch color files.
What is Color2Code? Originally, we were going to develop a simple application that would give us immediate access to the hexadecimal code and RGB value of the color the user has selected. For example, if you use Adobe Fireworks just to get the hexadecimal code of a color you select, you would first create a new document. Then you could pick a color. (See Screenshot 2-1.) So getting the hexadecimal code of a color could take at least two steps. It would take one or two more steps to get the RGB reprensentation of the selected color.
If you use Color2Code, you will get immediate access to the hexadecimal code, RGB and HSV values of a color you select. It'll just take one step. Furthermore, if you have a solid-color image file where you want to check its color, you can just drag and drop a file onto a drop box. (See Screenshot 2-2.)
Do you have multiple image files to scan for the colors at specific coordinates? It doesn't matter whether you have 10 or 100 or 1,000 images to scan. Switch to Pixel Pixel, and you can just drag and drop them all onto the listbox and then click on the Scan button.
When you first launch any new application, it's always a good idea for you to open Preferences. Okay, why not? In order to open Preferences, choose Preferences under Color2Code. You can also click on a toolbar button that is labeled Preferences. (See Screenshot 3-1.) Wait... If you have already selected a color swatch, the Colors window must be open. If it is, you probably want to close it by clicking on the Hide button at the bottom of the window (See Screenshot 3-2.) before working on application preferences. You can also close the Colors window by choosing Hide Colors under Colors.
The first tab is Settings. And you don't have many settings to work on. (See Screenshot 3-3.) Enable Require restart if you want the application to automatically restart itself when you close Preferences window. By so doing, you can make sure your application is updated with the latest changes you've made in Preferences.
There are several more checkboxes under this tab. The following list concisely describe them.
Furthermore, under Settings, find a box that is labeled Default open folder. Set a default folder by clicking on the Select button if you want. (See Screenshot 3-5.) When you choose File > Import to select a file to scan for the color at specific coordinates, Color2Code will point to the folder or volume you set here. By default, it will point to What are Pixel coordinates? We will explain in detail in a few minutes, but they are the coordinates on a picture where Color2Code will pick a color to return its hexadecimal code, RGB and HSV values.
Next, let's switch to the Export tab. (See Screenshot 3-6.) Color2Code allows you to export the color list that you develop. You can also generate color swatches as image files. The settings you see under this tab are used to export the color list on Colors and swatch files. As you will see soon, Colors has four columns: Colors, Hex, RGB, HSV. By enabling/disabling the top three checkboxes, you can tell Color2Code which column to include in a color list you export. Note that Color2Code will simply export a blank list if you leave all these three checkboxes disabled. As mentioned earlier, Color2Code lets you export color swatches as image files. Color2Code chooses PNG as its default export format. Or explore the drop-down menu under the label that says Export format to choose a different graphic format. (See Screenshot 3-7.) Note that you may want to avoid selecting SGI here as it's not suitable for solid-color images though you are given as a choice. By default, swatch dimensions are set to 76 x 36 pixels. You can change the color swatch size under Export dimensions box. And you can tell Color2Code where to export the color list and swatch files by selecting a default export folder under Default export folder box. Again, the default export folder will automatically revert to
The last tab to cover is Pixel Scan. Pixel Scan grabs the color at the coordinates you specify under the Pixel coordinate box. (See Screenshot 3-8.) By default, x and y coordinates are (0,0), which point to the top-left corner of the image file. If you have an image file that contains more than 1 color - an image file without a solid color, Pixel Scan may not pick up a precise color at the target coordinates just because the pixel square may not even have a uniform color in the first place. Furthermore, you can tell Color2Code which column to include when you export the color list with Pixel Scan as well. The color list will automatically include each file name. So you will not end up having a blank file even when you leave all three checkboxes under the Export options box disabled. If necessary, click on the Select button to set your default export destination just for Pixel Scan. Finally, if you want, enable No duplicates allowed in order to prevent Color2Code from allowing you to import the same files.
|