tagged [colors]

stdlib and colored output in C

stdlib and colored output in C I am making a simple application which requires colored output. How can I make my output colored like emacs and bash do? I don't care about Windows, as my application is...

29 Aug at 16:1

Should you use rgba(0, 0, 0, 0) or rgba(255, 255, 255, 0) for transparency in CSS?

Should you use rgba(0, 0, 0, 0) or rgba(255, 255, 255, 0) for transparency in CSS? Should you use `rgba(0, 0, 0, 0)` or `rgba(255, 255, 255, 0)` for transparency in CSS? What are the pros and cons of ...

17 Apr at 08:59

How to change the color of the axis, ticks and labels for a plot

How to change the color of the axis, ticks and labels for a plot I'd like to Change the color of the axis, as well as ticks and value-labels for a plot I did using matplotlib and PyQt. Any ideas?

9 Feb at 22:49

C# Color constant R,G,B values

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...

17 Apr at 23:7

How to set a string's color

How to set a string's color Does anyone know how I would set the color of a string that will be printed using `System.out`? This is the code I currently have:

16 Jan at 17:12

How to change the font color in the textbox in C#?

How to change the font color in the textbox in C#? If I want to upload a text file into the textbox and want to highlight certain words with a font color change, how can I do that without drawing the ...

11 May at 20:23

Matplotlib: Changing the color of an axis

Matplotlib: Changing the color of an axis Is there a way to change the color of an axis (not the ticks) in matplotlib? I have been looking through the docs for Axes, Axis, and Artist, but no luck; the...

27 Feb at 11:41

How to generate a number of most distinctive colors in R?

How to generate a number of most distinctive colors in R? I am plotting a categorical dataset and want to use distinctive colors to represent different categories. Given a number `n`, how can I get `n...

Programmatically set TextBlock Foreground Color

Programmatically set TextBlock Foreground Color Is there a way to do this in Windows Phone 7? I can reference the TextBlock in my C# Code, but I don't know exactly how to then set the foreground color...

13 Nov at 05:8

Make foregroundcolor black or white depending on background

Make foregroundcolor black or white depending on background Something like calculating the average value of rgb components and then decide whether to use black or white? Do I have to convert RGB to HS...

11 Feb at 01:4

Change DataGrid cell colour based on values

Change DataGrid cell colour based on values I have got a WPF datagrid and I want diffrent cell colours according to values. I have got below code on my xaml but instead of selecting a cell only is sel...

25 Jan at 15:6

Is there an easy way to blend two System.Drawing.Color values?

Is there an easy way to blend two System.Drawing.Color values? Is there an easy way to blend two `System.Drawing.Color` values? Or do I have to write my own method to take in two colors and combine th...

28 Oct at 18:28

How to create pastel colors programmatically in C#?

How to create pastel colors programmatically in C#? To generate them equally spaced out based on the number of colors wanted. Something that looks like this if 8 is given for the count specified: ![en...

19 Oct at 04:39

How to avoid color changes when button is disabled?

How to avoid color changes when button is disabled? We have a Windows Forms project with quite a few FlatStyle buttons. When we disable the buttons, the colors of the buttons are changed automatically...

1 May at 21:27

How can I invert color using CSS?

How can I invert color using CSS? HTML CSS Is there any way to invert the `p` color with CSS? There is `color: transparent;` why not `color: invert;` even in CSS3?

22 Aug at 13:32

How to color System.out.println output?

How to color System.out.println output? 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.

9 Oct at 04:19

How can I make a new color?

How can I make a new color? I have a form in C# that I want to enter as red, green and blue in 3 `TextBox` controls and make a new color. For example: red=3, green=2, blue=5 when I click on "MAKE COLO...

29 Sep at 09:24

How to get a Color from hexadecimal Color String

How to get a Color from hexadecimal Color String I'd like to use a color from an hexa string such as `"#FFFF0000"` to (say) change the background color of a Layout. `Color.HSVToColor` looks like a win...

17 Jul at 10:35

excel cell coloring

excel cell coloring I am using c# to color particular cells of excel file. I am using: ...to color cells, but this is not working. Can anyone help me out?

19 Sep at 14:42

Why rgb and not cmy?

Why rgb and not cmy? Seeing as how the three primary colors are cyan, magenta and yellow (CMY), why do monitors and almost all the GUI components out there use red, green and blue (RGB)? (If I'm not m...

3 Feb at 13:52

How can I change the color of my prompt in zsh (different from normal text)?

How can I change the color of my prompt in zsh (different from normal text)? To recognize better the start and the end of output on a commandline, I want to change the color of my prompt, so that it i...

27 Mar at 13:29

How do I set the colour of a label (coloured text) in Java?

How do I set the colour of a label (coloured text) in Java? How do I set the color of the text of a label? Can I have two seperate colors in one label? For example here: The `"Text Color:"` to be blac...

22 May at 18:58

Invert colors of an image in CSS or JavaScript

Invert colors of an image in CSS or JavaScript How do I invert colors of an image (jpg/png..) in either css if possible or javascript? [Previous](https://stackoverflow.com/questions/12431710/inverting...

23 May at 12:17

How do I create a random hex string that represents a color?

How do I create a random hex string that represents a color? I'm generating some charts that need a hex string for the colors. Example: I'm creating these dynamically, so I would like to generate the ...

4 May at 20:14

List of ANSI color escape sequences

List of ANSI color escape sequences On most terminals it is possible to colorize output using the `\033` ANSI escape sequence. I'm looking for a list of all supported colors and options (like bright a...

22 May at 20:16