Hmm, so no suggestion on creating new unique RGB values or checking that they are unique? Perhaps reuse the previous set with a value adjusted by a set value (e.g. 20).
Old post, I know, but I have a technique that might help someone else out in the future.
Assuming you're using Photoshop:
1) Navigate to your Photoshop scripts folder—Probably something similar to
C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Presets\Scripts.
2) Create a new text file with whatever name you'd like, and make sure to change the extension from
.txt to
.jsx. Mine is
Random Colors.jsx.
3) Open the
.jsx file in something like Notepad++ and paste the following code:
Code:
#target photoshop
var Colour = new SolidColor;
Colour.rgb.red = Math.ceil(255*Math.random());
Colour.rgb.green = Math.ceil(255*Math.random());
Colour.rgb.blue = Math.ceil(255*Math.random());
app.foregroundColor = Colour;
Colour.rgb.red = Math.ceil(255*Math.random());
Colour.rgb.green = Math.ceil(255*Math.random());
Colour.rgb.blue = Math.ceil(255*Math.random());
app.backgroundColor = Colour;
4) Save the
.jsx file.
5) Open Photoshop, go to "Edit -> Keyboard Shortcuts".
6) There should be an accordion menu dealio; use it to navigate down to "File -> Scripts -> [name of your
.jsx file]".
7) Click beside the name of your file, under the column where it says "Shortcut". This allows you to enter a quick keyboard shortcut for the script, although you have to make sure it's one that's not currently used by something else. I ended up using Alt+Shift+Ctrl+W.
8) Click "Accept" and then click "OK".
Whenever you press your shortcut keys, it should automatically set both your foreground and background colors to randomly generated RGB values! Because it covers the whole RGB spectrum, you're more likely to get secondary or muddied colors rather than attractive primary colors, but I suppose you can adjust to taste by fiddling with the functions in the
.jsx file.
