Darren Dignam Member |
# Posted: 15 Sep 2009 15:03
Find line 227, and change the code to:
var buttonColors = new Array(222);
// Colors - replace this function with your own if you have special requirements for colors
function getColorArray() {
// Color code table
c = new Array('00', '33', '66', '99', 'cc', 'ff');
var count = 0;
// Iterate red
for (r = 0; r < 6; r++)
{
// Iterate green
for (g = 0; g < 6; g++)
{
// Iterate blue
for (b = 0; b < 6; b++)
{
// Get RGB color
buttonColors[count] = c[r] + c[g] + c;
count++;
}
}
}
[b] // Iterate grey
for (g = 0; g < 6; g++)
{
// Get RGB color
buttonColors[count] = c[g] + c[g] + c[g];
count++;
}
}
This is not great, does anyone know how to get a photoshop style colorpicker? With 32-bit color picker? I am working on it and will follow up to this post if I find anything
|