colors

Change overview ruler color in Eclipse

How to change overview rule background color in Eclipse 3.4.0.I20080617-2000 (vertical bar on right of editing window with some annotations) ? General > Editors > Text Editors > Annotations allows only to change colors of marks itself not background of whole bar. It looks like my web searching skills are getting weaker since I cannot ...

Prettify my gdb

Is there a way to highlight and color gdb output during interactive debugging? Please don't reply I should use ddd, nemiver, emacs, vim, or any other front-end, I just prefer gdb as it is, but would like to see its output with some terminal colors. Thank you ...

Eclipse, where to change the current debug line background?

Can anyone point me to the preferences page that has the setting of the DEBUG current line background color? I have changed almost all the colours to dark ones and still get annoyed by this almost white current line indicator while debugging (note that the current line indication in editing mode is OK). ...

Converting hex to RGB and vice-versa

What is the most efficient way to do this? ...

Changing Win32 menu colors

Is there a way to change the colors used by plain Win32 menus (background, text, and highlight) for a single process, without using SetSysColors? (SetSysColors does a global change, which is bad, and if you crash or forget to set the colors back with SetSysColors again before exiting, they will not be restored until you logout.) ...

MFC: Changing the colour of CEdit

Guys, can someone give me a brief run through of how to change the background colour of a CEdit control at runtime? I want to be able to change the background to red if the field is zero length and the normal white otherwise. ...

How do you change the colors of the text when doing a Schema Compare in Visual Studio 2008 Database Edition?

I am trying to find out how to modify the Colors / Fonts used in the Schema Compare "Object Definitions" window that appears after a comparison is done between two databases. The color scheme I have is unreadable, but I cannot seem to find the right settings in the Tools/Options/Environment/Fonts and Colors dialog. Thanks for any help....

How to call COM function from PHP with OLE_COLOR as an argument?

I am trying to call a COM object from PHP using the COM interop extension. One function requires an OLE_COLOR as an argument? Is there any way to pass this kind of value from PHP? I have tried passing a simple integer value with no success. $this->oBuilder->Font->Color = 255; ...

How to generate spectrum color palettes

Is there an easy way to convert between color models in Java (RGB, HSV and Lab). Assuming RGB color model: How do I calculate black body spectrum color palette? I want to use it for a heatmap chart. How about single-wavelength spectrum? Edit: I found that the ColorSpace class can be used for conversions between RGB/CIE and many oth...

C# Color constant R,G,B values

Where can I find a list of all the C# Color constants and the associated R,G,B (Red, Green, Blue) values? e.g. Color.White == (255,255,255) Color.Black == (0,0,0) etc... ...

RGB for color composition rather than primary hues

Why do computers use RGB (red, green, and blue) values for color composition rather than the primary hues, red, yellow, and blue? ...

Colors in Visual Studio 2008

Hi, I'm struggling with Visual Studio 2008. I've used some form of "Zen" colors for more than I can remember. In VS2008 I keep getting one color that I cannot read and I have been unable to identify it; the purpose of the question is to avoid trial an error (the VS color interface is really ugly with no "real time" apply button). If y...

Changing text color in a DTPicker control

In VB6, I have a DTPicker control on a form. (The DTPicker is the calendar date/time selector, included in Microsoft Windows Common Controls-2 6.0, available from the Components dialog.) While there are many properties to affect the colors of the calendar when it's dropped down, there is no property that allows changing the color of the...

Color mapping a texture in opengl

I am displaying a texture that I want to manipulate without out affecting the image data. I want to be able to clamp the texel values so that anything below the lower value becomes 0, anything above the upper value becomes 0, and anything between is linearly mapped from 0 to 1. Originally, to display my image I was using glDrawPixels. ...

How Code Color is Set in StackOverflow?

The most favorite feature of StackOverflow for me is that it can automatically detect code in post and set appropriate color to the code. I'm wondering how the color is set. When I do a Ctrl+F5 on a page, the code seems first be black text, then change to be colorful at a glance. Is it be done by jQuery? ...

How pick colors for a pie-chart?

I have some code that generates image of a pie chart. It's a general purpose class, so any number of slices can be given as input. Now I have problem picking good colors for the slices. Is there some algorithm that is good at that? Or maybe I should just hand-pick and list fixed colors? But how many. Maybe 10 colors and hope there will ...

Coding color scheme for programming in Windows, not just Visual Studio

Like many SO people, I'm in front of a computer almost all day. I like having a dark theme for Visual Studio (easier on the eyes), but since the rest of Windows and apps (explorer, dialogs, Outlook), have the full white background, it's even harder to switch between nice dark VS and sunshine bright Windows. I tried a UXTheme.dll patch b...

Windows API colored output to stdout in Powershell/cmd.exe

Anyone know where to find a reference that describes how to output color on the Windows CLI interfaces using API and/or stdout? ...

How do I get emacs shell mode to either render (or ignore) my colors instead of printing ASCII codes?

The symptom of the problem looks like "[0m[27m[24m[J[34;1" which on a terminal translates into the color blue. -A ...

Color margins in VIM

Does anybody know how I can get diff's color margins in VIM (if it is possible)? I mean something like this: (e.g., in NetBeans: Netbeans color margins). It was very useful when I was working with NetBeans, maybe somebody wrote such useful plugin for VIM? Thanks! ...