Most voted "colors" questions
38 questions
Sort by count of
-
54
votes2
answers29269
viewsWhy green = blue + yellow, but RGB yellow = green and red?
Why the color formation in the RGB does not follow the same pattern of nature, and yet it works? For example: In RGB, yellow = red and green: #FF0000 + #00FF00 = #FFFF00. But if we take a yellow…
-
45
votes3
answers3408
viewsHow to find out if a hexadecimal color is dark or light?
I have a status listing that is displayed and each status has an assigned color. These colors are saved in my database in hexadecimal format. Example: #add555 I have a small problem: If the color is…
-
15
votes7
answers1690
viewsHexadecimal for RGB
How to convert a Hexadecimal color (#FFFFFF) for RGB (Red, GReen, BLue)? Example
-
13
votes3
answers614
viewsWhat happens to three-digit hexadecimal colors?
I’ve always been curious to know what happens in a 3-digit hexadecimal expression of a CSS color. For example, you have 000 and 000000, which is the black color. And fff or ffffff which is white.…
-
6
votes1
answer183
viewsCreating Properties, Summary and Custom Colors for Methods and Types
Is there a way or attribute that puts in a Class, Method, Structure or anything else that changes its color? Example of the function CType: Notice that she is colorful, and her arguments instead of…
-
6
votes1
answer1544
viewsHow to get the predominant color in an image?
I’m taking a picture of a camera and passing it to a ImagemView and would like to take the predominant color of this image, how could do this on Android? my next classLaiout ( wrote laiout with i…
-
5
votes3
answers358
viewsHow to generate random hexadecimal colors with Javascript?
In this question, teach how generate random colors through PHP. How to do this in Javascript?
-
4
votes2
answers12278
viewsC: Change color of letters (multiple colors on one screen)
For example, I want print on the same screen: printf(".___. .___. .___.\n"); printf("._1_. ._2_. ._3_.\n"); printf("Digite 0 p/ sair ou outro número p/ continuar: "); but I want the letters of each…
-
4
votes2
answers161
viewsHow to turn a hash into a color
How to turn a hash into a random color.. Notice that I used the expression "hash" only to say that a cluster of letters/numbers can be transformed into colors, like this:…
-
3
votes1
answer610
viewsERRORLEVEL command with colors?
I created a script bat to tesar some links, to using the command ping with the errorlevel And it’s working perfectly, but I wanted when I didn’t have communication, I mean, don’t drip, it would be…
-
3
votes2
answers6243
viewsHow to make a CSS background gradient (gradient)?
How do I do in CSS with which three div have the background gradient (gradient) changing color green for yellow and finally blue, being the first from top to bottom, the second from left to right…
-
3
votes1
answer308
viewsConvert to hexadecimal colors
I want to put inside an array, hexadecimal colors debts from a variable, so I have all different colors within the array. I have the following example, but using colors does not work: var color=[];…
-
3
votes1
answer1176
viewsJavascript function that generates html colors according to value
I need to create a Javascript function that takes an int and returns an html color code. The rule is: The smaller the number more "cold" is the generated color (light blue, for example) and the…
-
3
votes1
answer1434
viewsHow to compare two shades of color and give the percentage of similarity (Java)?
How to take images with the same dimensions (images of two equal squares) and analyze their tones to tell how similar they are (return a percentage of the similarity between the two tones of the…
-
3
votes2
answers267
viewsCapture RGBA values
I have an RGBA value that takes the color of a color palette. I need to get the separate values of each color component of the RGBA. I created 3 variables: var vermelho = (/*Tem que receber a…
-
3
votes1
answer110
viewsIs it possible to make a Picker color with canvas?
With the addition of canvas in HTML5, several possibilities have emerged, such as creating small games or even a meme generator. With that, I wonder if through the canvas it would be possible to…
-
2
votes1
answer82
viewsTools for color combination
People I’m starting to develop projects for Web and one difficulty I have is to associate colors or combine them. Thinking about it I found a tool called "Adobe Kuler" that helps me from time to…
-
2
votes1
answer113
viewsChange color of overflow button
I wonder how it mainly does to change the color of the overflow button, if it is not possible, change the image, to SDK minimum 10
-
2
votes1
answer480
viewsHow to identify patterns in colors?
I have an image and loop through each pixel of it. I need to identify if the pixel color: - It is a light or dark color; - And the hue of it (for example if it is bluish or reddish, greenish,…
-
2
votes2
answers844
viewsButton that changes the site color
I am trying to make on my website a button that is Sticky, by clicking on that button, it makes a Collapse right and shows a container with a certain number of colors available for the user to…
-
1
votes0
answers65
viewsColor in Visual Studio
Hello! Does anyone know how I can change colors of the unused methods/events vs those used in Visual Studio? I have VS2013 (using Dark theme) and Resharper but I can’t see exactly the methods/events…
-
1
votes0
answers880
viewsView colors on Notepad++
I always used Phpstorm to edit codes, but because it is too heavy started to hang a lot so I decided to use Notepad++, I always liked it for being very light, but only thing that gets in the way is…
-
1
votes1
answer270
viewsApply color palette to raw image
I have an image at gray levels and I want an algorithm to apply a color palette to it. Does anyone have a reference of an algorithm technique used or anything like that? I’m not experienced with…
-
1
votes1
answer201
viewsToolbar with two different colors
How to make a Toolbar with two colors in half, going from one color to the other?…
-
1
votes1
answer1370
viewsHow to change TAB color in bootstrap
I want to change the color of when a tab is selected, it is blue, I want to change to black, I also want to change the color of the letters inside the tab, when they are not selected, to gray. How…
-
1
votes1
answer1848
viewsRecognize the color of a python image
As part of my learning in python, I decided to create a simple program that detects the color of an image (solid color). The problem is that I have no idea how to do this, there is some python…
-
1
votes2
answers1295
viewsChanging colors when hovering the mouse
The following code is able to perform the following task: By clicking the "Create Square" button, a red square is rendered on the screen at each click. I wish that, when passing the mouse over these…
-
0
votes1
answer397
viewsGoogle Spreadsheets and Javascript
I receive a table with content containing several similar products but with different lines and codes, another important information is that sometimes comes from my client grouped by colors. I’d…
-
0
votes1
answer551
viewsCalculation of figures area
I may have something on the subject here, but I haven’t found it. I am new in the area and would like help to elaborate a C++ algorithm for detecting the area of a predetermined color in a figure.…
-
0
votes1
answer445
viewsChange the background color of a JTEXTAREA text
I am a beginner in Java and I am trying to create a function that changes the background of words, I took a print of the example as I would like it to be. What is expected is for a table to be…
-
0
votes2
answers2454
viewsA. bat file that changes the background color according to the number the user entered
The code below should change the background color after the user enters a number from 0 to 7, but the program closes right after the user enters the number and does not change the color. I’m using…
-
0
votes1
answer35
viewsColor recognition with switch/case
In my code, I’m making a map in which one pixel for colored x, then the Sprite x will be put in it, example: int pixelAtual = pixels[xx + (yy * map.getWidth())]; tiles[xx + (yy * WIDTH)] = new…
-
0
votes1
answer144
viewsColor status in gridview Asp.net C#
I need to make the text of the exam status of an app appear in different colors, in case wait black, marked green and not performed in red, these status are in an Enum. Follow my code, if anyone…
-
0
votes1
answer40
viewsHow to change colors in graphics using matplotlib
I created a plot of points using matplotlib, but I want to put the following condition: For points above zero ( > 0) in Y paint green and for points below zero ( < 0) paint red.…
-
0
votes0
answers9
viewsHow to change the color of the Chartjs Chart Colors?
Whoa, whoa, so... I’ve been working with Coreui (it’s a tamplate based on bootstrap-4 and React to create interfaces) in this, I wanted to implement a graph, and the graph from what I saw in the…
-
0
votes1
answer179
viewsColorize Datagridview with comparison C#
I wonder if there is any way to color datagridview line without using a loop. I have a minimum stock and when available is below the minimum would like to paint the red line. I did it that way, but…
-
-2
votes1
answer44
viewsI am studying Python and using Google colab as an IDE. Using 033[m does not end the colorization. Can anyone help?
I’m learning Python and using Google colab. So I tried. print('\033[31mOlá Mundo!\033[m') print('Olá Mundo!') What happens is that the \033[m does not contain colorization and the next line and all…
-
-2
votes2
answers174
viewsWhat color format should be used in the range parameters of the "cv2.inRange" function?
I want to create a mask for my image with Opencv using the function inRange, but I don’t know which color format to use. The documentation only says that the image (first parameter) must be in HSV,…