colors

Invert display colors

Is it possible to invert display colors on Windows like Macs can? I have nVidia GeForce 6200 graphics card and 17" Samsung SyncMaster display. ...

BGR Color Space

I understand RGB --- value (0-255)Red,(0-255)Green,(0-255)Blue to form a color. What is exactly BGR color space ? How is it different from RGB color space ? ...

OpenGL: inaccurate color?

I'm trying to follow the directions from this page: http://www.opengl.org/resources/faq/technical/color.htm regarding rendering primitives with a unique color I've checked the number of bits for every color and the result was 8 for each. When calling: glColor3ui(0x80000000, 0, 0xFF000000); and reading back the pixel with glReadPixel...

Smooth spectrum for Mandelbrot Set rendering

I'm currently writing a program to generate really enormous (65536x65536 pixels and above) Mandelbrot images, and I'd like to devise a spectrum and coloring scheme that does them justice. The wikipedia featured mandelbrot image seems like an excellent example, especially how the palette remains varied at all zoom levels of the sequence. ...

Convert string to Brushes/Brush name in C#

I have a configuration file where a developer can specify a text color by passing in a string: <text value="Hello, World" color="Red"/> Rather than have a gigantic switch statement look for all of the possible colors, it'd be nice to just use the properties in the class System.Drawing.Brushes instead so internally I can say something...

Understanding colors

Hello everyone, Kindly point towards theory/material to read for understanding colors and what makes a good color combinations. Mind it that I am not interested in say "Color combinations for web application" etc. More of the lines of say "Colors and humans". Material free to read is what i am looking for. Thanks ...

How do I indicate success and failure with colour?

I need to make a Java component that turns the background a certain colour when a process passed, and another colour when the process failed. My first thought was: green for success, red for failure. But then I read that 10% of males can't differentiate between these two colours. What would be a better combination of colours? (For the...

Setting a font color in VBA

Hi. I want to set the font color of a cell to a specific RGB value. If I use ActiveCell.Color = RGB(255,255,0) I do get yellow, but if I use a more exotic RGB value like: ActiveCell.Color = RGB(178, 150, 109) I just get a grey color back. How come can't I just use any RGB value? And do you know any workarounds? Thanks. ...

How to Change Netbeans Fonts and Colors Preview Document?

Within the Netbeans 6.5's Tools -> Options -> Fonts & Colors -> Syntax dialog, you have the ability to change the look and feel of the Netbeans text editor. When you select a language, you are presented with a preview of your font/color scheme. However, when I preview Java, there are far more options for syntax changes than are being dis...

How can I make the Python logging output to be colored?

Some time ago I saw a Mono application with colored output, probably because of it's log system, because all the messages were standardized. Now, Python has the logging module, and it let you specify a lot of options or customize it entirely, so I'm imagining that something like that would be possible too with Python, however I could not...

wpf update ListViewItem background property

I have a listview that is binded to a ThreadSafeObservableCollection. The background of each of these items is set to an enum that is run through a color converter, here's the code for these 2 settings. <UserControl.Resources> <EncoderView:EncoderStatusToColorConverter x:Key="ColorConverter"/> <Style x:Key="ItemContStyle" Targe...

How to make a color from a number

I have a function that returns a float from 0 to 255. I would like to make a gradient in red color from this, but I need a string in "#FFFFFF" format. Is there a function for that? ...

How to mix colors "naturally" with C#?

I have to mix some colors in a natural way. This means blue + yellow = green blue + red = purple and so on. I got the colors as RGB-Values. When I try to mix them I got the right "RGB"-results like green + red = yellow yellow + blue = white but not the right "natural-wet-paint"-results. Any good idea how to mix RGB in a natural wa...

Easiest way to alternate row colors in PHP/HTML?

Here's a PHP example of mine. Can anyone find a shorter/easier way to do this? <? foreach($posts as $post){?> <div class="<?=($c++%2==1)?‘odd’:NULL?>"> <?=$post?> </div> <? }?> <style> .odd{background-color:red;} </style> Examples in other languages would be fun to see as well. ...

How do I migrate my Netbeans themes to other computers?

Short of copying the entire .netbeans directory is there any way to transfer custom Netbeans color schemes to other computers? I am using the latest (6.5). ...

Programmatically choose high-contrast colors

This should be a simple question, but I haven't been able to find a way to make it work. Essentially, I have a silly localhost page that I use in my webdevelopment. When I am surfing between our development server and my local version of the C# code (redirected from the dev url via host file) I have been known to sometimes forget what ...

What's the most appropriate background color for a web page?

What's the most appropriate background color for a web page? Why? What is the least fatiguing color for eyes? Loads quickly? Works with other colors? Works for the color blind? White seems to be best for printing and for load speed, but it can seem pretty harsh on the eyes. Is there a better option? ...

How do I create NSColor instances that exactly match those in a Photoshop UI mockup?

My UI designer gives me great UI mockups created in Photoshop. I want to exactly match the colors in the mockup, but every time I create a color using the -colorWithCalibratedRed:green:blue:alpha: method of NSColor, the colors do not match. I have tried sampling the colors from the Photoshop mockup using the Pixie app in /Developer/Appl...

Windows Vista Desaturated: Grayscale UI

Hi, Occasionally working in Windows Vista the O.S. will desaturate the screen, rendering all colors as grayscale. Is there a way to do this programatically? Failing that, is there a way to do it by tweaking Vista settings? Thanks. ...

Libraries for Choosing Color?

Do any open source libraries exist for programatically selecting and rating the compatibility of sets of colors using color theory? It would be very useful to be able to select color palettes based on simple color harmony rules like complimentary, analogous, triadic, and tetradic colors. ...