Top "Colors" questions

Use this tag for questions about representing or manipulating colors in a programming language.

Colorizing text in the console with C++

How can I write colored text to the console with C++? That is, how can I write different text with …

c++ colors colorize
Change bar plot colour in geom_bar with ggplot2 in r

I have the following in order to bar plot the data frame. c1 <- c(10, 20, 40) c2 <- c(3, 5, 7) …

r ggplot2 colors geom-bar
How can I define colors as variables in CSS?

I’m working on a CSS file that is quite long. I know that the client could ask for changes …

css variables colors css-variables
Changing background color of ListView items on Android

How can I change background color of ListView items on a per-item basis. When I use android:backgroundColor in the …

android listview colors
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 …

java colors system.out
How to add color to Github's README.md file

I have a README.md file for my project underscore-cli, a pretty sweet tool for hacking JSON and JS on …

github colors markdown github-pages readme
How to set custom ActionBar color / style?

I am using Android Navigation bar in my project, I want to change the top color in action bar to …

android colors background android-actionbar navigation-drawer
Colorized grep -- viewing the entire file with highlighted matches

I find grep's --color=always flag to be tremendously useful. However, grep only prints lines with matches (unless you ask …

bash shell colors grep
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 …

colors terminal ansi-escape
Programmatically Lighten or Darken a hex color (or rgb, and blend colors)

Here is a function I was working on to programmatically lighten or darken a hex color by a specific amount. …

javascript colors hex