- Forums - Reply - Statistics - Sign Up - Search -

The Wyzz WYSIWYG Editor / Feature Requests / Grays be added to the color picker
Author Message
Johnathan Morlock
Member
# Posted: 12 Aug 2008 17:19


Hey everyone,

Can Grays be added to the color picker?

God bless,
Johnathan

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

Your answer

Bold Style  Italic Style  Underlined Style  Image Link  URL Link  Disable BB codes *What's that?

 » Name  » Password 
 Only registered users can post here. Enter your login/password correctly before posting a message, or register first.
 

Powered by miniBB forum software © 2001-2010