colors

What's the standard color definition for different browsers with jQuery?

I need to blink between two colors:red and white. I've found that after $targetcss('background-color','red'), value of $targetcss('background-color') is not red,but rgb(255, 255, 255), pay attention that there is a space between "," and digit in firefox, but there is no space in IE. And my code is now : if(existingBgColor != 'rgb(2...

HSL Interpolation

If the hue component of my HSL color is in degrees, how can I correctly interpolate between two hues? Using (h1 + h2) / 2 does not seem to produce desirable results in all cases. Here are two examples that illustrate why: Let: red = 0° yellow = 60° blue = 240° (red + yellow) / 2 = 30° (orange) (yellow + blue) / 2 = 150° (blue gree...

hyberlink in gridview not change the color

ASP.Net +C# I have a web page and a GridView in it in my code some where i need to change the color of data it display something like : GridView1.Rows[y].ForeColor = System.Drawing.Color.FromArgb(0, 204, 0); the problem is: i have a hyberlike in some cells of the GridView and when i change the color the change affects onlythe text in...

Change the color of a button on a standard pop-up action

I am using a standard pop up action in my iphone app (the pop up at the bottom of the screen). This has 2 buttons "ok" and "cancel". It seems the standard colour scheme is to have the top button red. I want to change this so the top button is green. I have been googling forever and can't find the solution. Any ideas would be great. Thank...

Get dominant colors from image discarding the background

What is the best (result, not performance) algorithm to fetch dominant colors from an image. The algorithm should discard the background of the image. I know I can build an array of colors and how many they appear in the image, but I need a way to determine what is the background and what is the foreground, and keep only the second (for...

Specific VB Excel Color Dialog

Hello, I've been looking for a very specific Color Dialog box in Excel the last couple hours, but all examples I've found aren't exactly the same. I'm looking for this Color Dialog box to incorporate into a form: http://yfrog.com/29colorboxj I'm not too familiar with Dialogs either... any advice is greatly appreciated! ...

Setting background and font colors for RichTextField, TextField

How do we set the background and font colors in a RichTextField? I tried to override the paint() method in addition to what has been described here, but when I scroll down in, the background gets erased or reset to a white background ...

How to change segmentcontrol color while loading the iphone application?

Hi, i want to change the color of the segment color while loading the application. or is it possible to change the color of the segmentcontrol according to the NavigationBar header/title color? Provide any solution with any code snippet or any useful link,which would be appreciated. Thanks, Mishal ...

How to color System.out.println output?

Question is simple: How can I color java output? For example in C and other languages I can use ansi-escape like \033[0m to do this. But in java it doesn't work. public static void main(String[] x) { System.out.println("\033[0m BLABLA \033[0m\n"); } ...

How can I cycle through hex color codes in PHP?

I want an array where each field in the array contains a color code array(0 => '#4CFF00', 1 => '#FFE97F') And I want this to go through the whole spectrum of colors starting from green to black. green-> blue -> dark blue -> purple -> yellow -> orange -> red -> brown ->black This order doesn't need to be exactly the same, but I thin...

3 digit Hex color code

I've been using 3-digit Hex color values in CSS for a long time: #fff, #999, #069 etc., I can see how the repeating alphabets/numbers are merged to create a 3-digit hex color code, but I don't fully understand the pattern to be able to write a converter in PHP. Is there a documentation for this? Edit: Oh, perhaps my question wasn't clea...

Color profile detection in JPEG

I would like to be able to detect the presence of a color profile in JPEG. To be clear: I'm not interested in actually carrying out the color corrections or doing anything else with them. I did some investigation, but I could not find any definite source of information. Here is what I know so far: There is a color profile information ...

Any best practices with feedback colours?

I have a few that I think are correct. These are background colours for messages. ERROR: red; INFO: blue; SUCCESS: green; NOT IMPORTANT INFO: yellow Have I got the blue and yellow around the wrong way? Any hex values that are a de facto standard for these? I am curious considering web development, but I think the answers will be agn...

Organizing Images By Color

Maybe you've noticed but Google Image search now has a feature where you can narrow results by color. Does anyone know how they do this? Obviously, they've indexed information about each image. I am curious what the best methods of analyzing an image's color data to allow simple color searching. Thanks for any and all ideas! ...

JavaScript: how to change CSS style of created span?

newNode = document.createElement("span"); newNode.innerHTML = "text"; range.insertNode(newNode); Is it possible to make the text in innerHTML with red background color? I want to add style="background-color:red" to just created span. Is it possible? Or it must have some id, and then I can change this span with jQuery? ...

Yellow text showing up on website, but hard to troubleshoot

We have gotten several emails and phone calls about yellow text appearing on our webpages at http://www.ciu.edu. We are specifically using a black text in the stylesheet. It is on a tan background. One person claimed to be color blind and I have tried various tests for colorblindness, but no such luck. We are at a loss as to what is g...

Putting colors on an image in C#

I've used this piece of code to put an image in a variable. What I wanna do is draw dots on it on various places and then save the result. What I do is I open a dialog to select the file and to check if it worked, I put it in a picturebox. Using winforms offcourse. Using Visual Studio 2008 Professional. EDIT:the openImg variable you se...

Random Color generator in Javascript

Hi there, i am not an Javascript and i need a little help. Given this function , i want to replace the color with an Random Color generator. document.overlay = GPolyline.fromEncoded({color: "#0000FF", weight: 10, points: encoded_points, ...

Need to change the color of table view selection!!!

Hi All, I need to change the default blue color selection of table view to some custom color. Is there any way to do that. Help me Thanks in Advance Shibin ...

linearRGB conversion to/from HSL

Does anyone know of a way to get HSL from an linearRGB color (not an sRGB color)? I've seen a lot of sRGB<->HSL conversions, but nothing for linearRGB<->HSL. Not sure if it is fundementally the same conversion with minor tweaks, but I'd appreciate any insight someone may have on this. Linear RGB is not the same as linearizing sRGB (whic...