Top "Colors" questions

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

How to set the text color of TextView in code?

In XML, we can set a text color by the textColor attribute, like android:textColor="#FF0000". But how do I …

android colors textview
Hex transparency in colors

I'm working on implementing a widget transparency option for my app widget although I'm having some trouble getting the hex …

android colors hex transparency
Change color of PNG image via CSS?

Given a transparent PNG displaying a simple shape in white, is it possible to somehow change the color of this …

css image colors png overlay
How to set Bullet colors in UL/LI html lists via CSS without using any images or span tags

Imagine a simple unsorted list with some <li> items. Now, I have defined the bullets to be square …

css layout colors html-lists
Random color generator

Given this function, I want to replace the color with a random color generator. document.overlay = GPolyline.fromEncoded({ color: "#0000FF", …

javascript random colors generator
div background color, to change onhover

I'm trying to make a div's background color change on mouse over. the div {background:white;} the div a:hover{…

css colors background hover
Transparent ARGB hex value

The colors in this table is all not transparent. I guess the value for the A is set to FF. …

colors hex argb
How do I get the color from a hexadecimal color code using .NET?

How can I get a color from a hexadecimal color code (e.g. #FFDFD991)? I am reading a file and …

c# wpf colors hex
HTML: Changing colors of specific words in a string of text

I have the below message (slightly changed): "Enter the competition by January 30, 2011 and you could win up to $$$$ — including amazing …

html css text colors inline
RGB to hex and hex to RGB

How to convert colors in RGB format to hex format and vice versa? For example, convert '#0080C0' to (0, 128, 192).

javascript colors hex rgb