colors

RGB filters for different forms of color blindness

My father is color blind and given that I work in games where the visuals are important, I've always wanted to write a filter for screen shots (or even some type of shader) that emulated different forms of color blindness. I've seen plenty of references but never have been able to track down algorithms. Any algorithms would be apprec...

Background color of a ListBox item (winforms)

How can I set the background color of a specific item in a System.Windows.Forms.ListBox? I would like to be able to set multiple ones if possible. ...

How do I determine darker or lighter color variant of a given color?

Given a source color of any hue by the system or user, I'd like a simple algorithm I can use to work out a lighter or darker variants of the selected color. Similar to effects used on Windows Live Messenger for styling the user interface. Language is C# with .net 3.5. Responding to comment: Color format is (Alpha)RGB. With values as by...

Where can I see what Color properties in .NET like "BlanchedAlmond" look like?

I'm in the middle of writing code in .Net to draw something in my app and I need to pick a color to use. But what does the color "Chartreuse" look like? Isn't there a nice bitmap that shows what each of the system colors look like somewhere? Thanks! ...

Is it possible to create full screen color overlay effects in windows?

I remember my old Radeon graphics drivers which had a number of overlay effects or color filters (whatever they are called) that would render the screen in e.g. sepia tones or negative colors. My current NVIDIA card does not seem to have such a function so I wondered if it is possible to make my own for Vista. I don't know if there is s...

Washed out user interface - is there any way to correct for it?

This is an interesting conundrum. We have a WPF app that has a Vista-like theme using soft pastels, Aero control templates, etc. What we've noticed is that this UI appears incredibly washed out on low quality LCDs. Is there a way to boost color saturation application-wide or are we at the mercy of bad monitors? Can we even tell, program...

Programmatically Lighten a Color

Motivation I'd like to find a way to take an arbitrary color and lighten it a few shades, so that I can programatically create a nice gradient from the one color to a lighter version. The gradient will be used as a background in a UI. Possibility 1 Obviously I can just split out the RGB values and increase them individually by a certa...

How do I brighten the colors in the rxvt family of terminals?

I know how to lighten the colors for certain commands, however I'd like to lighten the standard ansi colors across all commands. ...

Any clean css method to make each letter in a word a different color?

I need a way to allow each letter of a word to rotate through 3 different colors. I know of some not so clean ways I can do this with asp.net but I'm wondering if there might be a cleaner CSS/javascript solution that is more search engine friendly. The designer is includes a file like this: http://stlartworks.efficionconsulting.com/Port...

Varying Colors in Processing

I've been working on porting some of my Processing code over to regular Java in NetBeans. So far so well, most everything works great, except for when I go to use non-grayscale colors. I have a script that draws a spiral pattern, and should vary the colors in the spiral based on a modulus check. The script seems to hang, however, and I...

Color scaling function

I am trying to visualize some values on a form. They range from 0 to 200 and I would like the ones around 0 be green and turn bright red as they go to 200. Basically the function should return color based on the value inputted. Any ideas ? ...

How to avoid syntax-highlighting for large files in vim?

Huge files take forever to load and work with in vim, due to syntax-highlighting. I'm looking for a way to limit size of highlighted files, such that files larger than (say) 10MB will be colorless. ...

RichTextBox and underline color

Hi, Is there any way to change the color of an underline in a RichTextBox? I've tried http://geekswithblogs.net/pvidler/archive/2003/10/15/188.aspx but it doesn't seem to work. Anybody know where did those enum values came from? Didn't see any documentation for it. Thanks. ...

Best CSS color wheel sites

What site(s) do you recommend for looking at complimentary colors for site design? It would also be beneficial to enter a hex or RGB value and have the color wheel spit back complimentary colors. Most popular: Kuler Others in alphabetical order: 4096 Color Wheel Allprofitallfree - color-wheel2 Color Wheel v1.2 Javascript color sch...

How to choose colors in web development

When I build a site I tend to do a bit of graphic design (developer style) in Paint.NET, but how do I know the colors will all display properly on all browsers on different machines? What color depth to you generally code for? 16bit 256 colors etc. ...

Setting Background Color CMDIFrameWnd

Is there a way to change the color of the background for a MDIParent windows in MFC (2005)? I have tried intercepting ON_WM_CTLCOLOR AND ON_WM_ERASEBKGND but neither work. OnEraseBkgnd does work, but then it gets overwritten by the standard WM_CTL color. Cheers ...

Java- Changing swing background colour?

Ok so ive got a bitchin swing app going using the "System" look and feel. Now, I want to change the background colour of the main panels to black. Too easy right? UIManager.put("Panel.background", Color.BLACK); Well yeah, except now the controls in the app look stupid, because their 'shadows', for want of a better word, are graduated...

is there a perceptual DeltaRGB comparison of two colours (ie: like DeltaE2000)?

I was wondering if anyone knows of a reliable Delta RGB formula or code snippet that does colour Delta of the full RGB tri stim values, like how DeltaE 2000/cmc does Lab/Lch that takes perceptual differences into account?. The RGB Colourspace could be any but if it needed to be a particular one I could keep it sRGB for the calculations. ...

Prevent series from using clWhite with Delphi TChart

I have a report that uses a TChart that I am maintaining. One of the TLineSeries that gets added automatically gets assigned the color clWhite, which is too close to the background (clBtnFace). If I change it, then the next series that gets added takes clWhite. So short of going back and changing it after all the other series are cr...

Colour blindness simulator

Like any responsible developer, I'd like to make sure that the sites I produce are accessible to the widest possible audience, and that includes the significant fraction of the population with some form of colour blindness. There are many websites which offer to filter a URL you feed it, either by rendering a picture or by filtering all...