Category "colors"

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 Frown | :(

Javascript change color of text and background to input value

I'm going to use javascript to make a function for changing color of background, as well as text simultaneously - based on the value of a text input. I've got t

Colors for heatmap in R

I'm making a heatmap in R, but being very new to R, I have some questions: My data is a big matrix 21 columns and 89 rows, containing numbers from 0 to 16. I w

Nivo React Scatterplot - node colors per object key - possible?

Using Nivo React Scatterplot chart I want to specify dot color respective to key value of my data object. E.g.: data: [ { x: 0, y: 3300, average: 3500, status

SwiftUI — Color.yellow renders as brown on iOS device (but yellow in simulator)

Why does Color.yellow appear brown on my iPhone X but yellow in my simulator? It's not a display problem, as this iPhone X screenshot of a test app shows: As y

Converting Hex to RGB value in Python

Working off Jeremy's response here: Converting hex color to RGB and vice-versa I was able to get a python program to convert preset colour hex codes (example #B

Detect color under macOS mouse cursor

I want to know how to get the color of the pixel where the OS X / macOS mouse pointer currently is located. I programmed a console application, so I have no win

Getting individual colors from a color map in matplotlib

If you have a Colormap cmap, for example: cmap = matplotlib.cm.get_cmap('Spectral') How can you get a particular colour out of it between 0 and 1, where 0 is t

Converting from HSV (HSB in Java) to RGB without using java.awt.Color (disallowed on Google App Engine)

I figured I should post this question, even if I have already found a solution, as a Java implementation was not readily available when I searched for it. Usin

Android: change background color View onClick Button

How I can change the background color to a View this under a button when I click the button? I've tried a selector does not work because the View not change the

Convert RGB to RGBA over white

I have a hex color, e.g. #F4F8FB (or rgb(244, 248, 251)) that I want converted into an as-transparent-as-possible rgba color (when displayed over white). Make

JavaScript Calculate brighter colour

I have a colour value in JS as a string #ff0000 How would I go about programatically calculating a brighter/lighter version of this colour, for example #ff48

Rainbow color function

Is there a python library with a rainbow color function? What I want is a function such that I give as input a number between 0. and 1. and it returns a color

How to change the text color of font in legend?

Is there a way to change the font color of the legend in a matplotlib plot? Specially in occasions where the background of the plot is dark, the default black t

ggplot2: fill color behaviour of geom_ribbon

I am trying to colour ribbons in ggplot2. When using geom_ribbon, I am able to specify ymin and ymax and a fill color. What it now does is coloring everything t

Pixel Depth vs. Color Depth

The question is, what is the difference between color depth and pixel depth? Searching Pixel Depth on google simply give links to Color Depth. Even the dicti

Converting an RGB color tuple to a hexidecimal string

I need to convert (0, 128, 64) to something like this "#008040". I'm not sure what to call the latter, making searching difficult.