colors

Can I swap colors in image using GD library in PHP?

Hi, I got the image like this (it's a graph): I want to change the colours, so the white is black, the graph line is light blue, etc.. is it possible to achieve with GD and PHP? ...

How do I change text color using flash actionscript 2?

How do I change text color using flash actionscript 2? ...

How to automatically generate N "distinct" colors?

I wrote the two methods below to automatically select N distinct colors. It works by defining a piecewise linear function on the RGB cube. The benefit of this is you can also get a progressive scale if that's what you want, but when N gets large the colors can start to look similar. I can also imagine evenly subdividing the RGB cube into...

Is there a good way to do color cycling in javascript?

Here's what I'd like to do: I've got a line of text in an HTML page. I'd like to have that piece of text start at a given color, cycle though the spectrum, wait a second or two, and then repeat. I'd like to do this in javascript if possible (something like flash isn't totally out of the question, but would be some major scope creep of ...

Is there a simple, consistent way to change the color scheme of eclipse editors?

I'm going crazy trying to get all of the editors to look similarly. It looks like there's a different color editor option for each file type/code type, which means it takes FOREVER to customize the view. Add to that: each code/file type color option seems to honor the default set in the generic options only if it feels like it (seems b...

<ol> with numbers another color

<ol> <li>test</li> <li>test</li> </ol> will show as: test test I want to have numbers coloured and text black! I can edit the css, but I do not have access to the HTML. ...

Is there an easy way to compare how close two colors are to each other

Is there a way to compare how close two colors are to each other? If to say both of them are blue. At the moment the way that we compare them is to manually assign each possible color to a color family(red, green, blue...). And then just compare the strings :) But surely that manual task can be assigned to a neat little algorithm. ...

Mapping arbitrary strings to RGB values

I have a huge set of arbitrary natural language strings. For my tool to analyze them I need to convert each string to unique color value (RGB or other). I need color contrast to depend on string similarity (the more string is different from other, the more their respective colors should be different). Would be perfect if I would always g...

Mapping a list of numeric values to colors

I have a list of numeric values. I may normalize the values if needed. I need to transform this list to a list of colors (in HSL, RGB or any other color model I can always do conversion later). For any given value the color must be the same every time. The more different two given numeric values are, the more contrast corresponding v...

"Best" background color for your editor

I have a black background with white characters but I want to know if other combination (white with black characters or yellow characters or blue background like turbo pascal) work for you. Do you have any info about which combination is better for the eyes? Why the default is white with black chars? ...

How to make a a:hover gradually have other colour

Hi, My menu has the colour #006699, when hover I want it to gradually go over to the colour #4796E9. Is that possible? ...

Font color of disabled listbox

Hi everybody! I want to draw some listview items disabled and would like to mimic the appearance of a disabled standard Windows listbox. Which colors does it use? I can't find anything in my reference chart :-) or with Google. Edit: Shortly after posting the obvious occurred to me - it seems to be COLOR_GRAYTEXT. ...

Create programmatic colour picker

How would one create a deterministic Javascript HTML colour picker which given arguments of how many colours are desired returns an array of HTML hex colour codes, ie: function createColours(numColours) { return [/* colours array of size numColours */] } The colours themselves can be chosen / generated randomly, but the method m...

Color blindness: Are you aware of it? Do you design for it?

I'm curious whether many of us who do design or take design decisions have ever heard of this problem. I'm aware there are dangerous color combinations, like green + red. This is probably one of the most popular cases of color blindness. If you have green text on a red background and vice versa some people won't see anything. I've also...

Visual Studio 2008 (C# @ Verbatim) Fonts and Colors option

I just read secretGeek's fun post on 8 ways to be a better programmer in 6 minutes and really liked the tip on making hard-coded strings look ugly. When I tried to change the Fonts and Colors setting to do this in my copy of Visual Studio 2008 Professional, I found that the String (C# @ Verbatim) option was not in the Display items list...

How can I make links white?

How can I change the colour of hyperlinks to white in HTML and CSS? ...

jquery color animation throws Invalid property value intermittently

I'm trying to animate the background for an ASP.Net hyperlink to do a yellow fade on an update panels refresh. So far it works almost all of the time, but occasionally a javascript error is thrown "Invalid Propery value." and it debugs into the jquery color plug-in code to this line... fx.elem.style[attr] = "rgb(" + [ Math.max(Mat...

Need help/answers on PDF color seperation

Using the following process: A PDF is been created by PDFCreator, when a user prints something to the virtual printer The PDF gets further processed with integrated VBScript handler and passed over to JAVA which does some processing with the PDF content In the middle of the process an external application is called with the PDF that ad...

Is there a way to see the color that will display for a .NET color name?

I'm using System.Drawing.Color, is there anything in Visual Studio that can display the color for the name? For example if I used Color.Cornsilk what would color would be displayed? ...

How can I make hard-coded strings heinous-looking in VIM?

I was inspired by this (number 2) to make my hard-coded strings ugly. How can I do this in VIM? Thanks! ...