I used to be a big fan of Brilliance on the Amiga, and I love GrafX2, but I've also gotten used to the OS X system color picker too much in recent years. Enter GrafX2's Brush Factory + Johan Nordberg's command line wrapper for the system color picker + some scripting attempt on my part, and BOOM: Awesomeness squared! (well, almost, see Known Issues)
Tested on Mac OS X 10.7, 10.8 and 10.9, with GrafX 2.4.
- Download the binary of color-pick (from the zip only bin/colorpick is needed), or compile it yourself.
- Copy the colorpick binary to its final place somewhere (I put it in ~/bin/)
- Copy colorpicker.lua into your GrafX2 scripts folder (usually /Applications/Grafx2.app/Contents/Resources/scripts/)
- if you put the colorpick binary somewhere other than ~/bin/ open colorpicker.lua in a text editor, and set the path to your colorpick binary
- Optional: in GrafX2 set a keyboard shortcut so you can invoke the script faster by right clicking the [FX] button, selecting colorpicker.lua and clicking inside the area below the file listing (I use Ctrl+Shit+`)
- Done :)
Select the color you want to modify with the left mouse button (the script always works with the currently selected foreground color) and invoke the script.
The script probably doesn't work well if GrafX2 is set to fullscreen mode; I cannot test this, because on my machine GrafX2 crashes whenever I try to set it to fullscreen.
If you switch to another app while the color picker is open GrafX2 will beachball when you switch back to it, and the color picker will disappear. To make it reappear, click its icon in the dock (it should look like a standard shell executable).
Sometimes when switching to another app and back while the color picker is open some keys also get stuck, in these cases press ESC, and it should return to normal.