I am trying to find a segment in color wheel which is dedicated to particular color only (For example, red or green or black or violet).
So far, i have tried following:
I used 12 colors and 20 shades of each color to narrow down a color range(https://digitalsynopsis.com/design/color-thesaurus-correct-names-of-shades/). But, i was clearly not able to define the range of particular color because i have not found any pattern which could say when i will enter into differen color segment.
For example, to define black color, what digit should be the minimum and maximum in RGB or any other module?
If the RGB space were rendered as a cube, white, black, red, green, blue, yellow, magenta, and cyan would be corners; gray would lie at the center of the cube.
Is there a name for colors on the surface of that cube?
In simple terms, non-grayness could be quantified (with r, g, and b from [0..1]) as
abs(max(r, g, b) - .5) / .5
Here, white, black, red, orange, etc. would have a "non-grayness" of 1.
A recent article in colour vision theory (an open-access version is available on bioRxiv) defined this concept as vividness.
It is based on the representation of colours in a colour solid, where each axis is one component of colour. In such solids, the origin is black and the opposite edge is white. For example, this is the colour solid of the CMYK colourspace, plotted in this StackOverflow question:
Vivid colours are colours on the surface of this colour solid, which is exactly what you are describing in your question:
We define a measure of colour vividness, such that points on the surface are maximally vivid and the ‘grey’ centre is minimally vivid.
I need to display an outline of a dog in a window. I then need to be able to change the colour for different part of the dog by inputting numbers into entry boxes- for example if I put a '1' in the 'head' entry box, the head changes to a yellow colour. The dog should be white by default.
I can just create 4 images (one for the head, body, legs, and tale) to change each part of the bod. I've thought about changing the rgb values of each image to change the colour, but this would also change the colour for the outline (meant to stay black). The only other thing I could think of was making a red, blue, green, yellow, blue, etc. version of each image (head, body, legs, tail), and then just displaying the red version of the image when I need to (and the same for other colours).
I need to know if there is any other way to do this (perhaps with the canvas widget?) before I code it because It will take a long time to change the colour of each image. I just have no idea where to start.
Thanks in advance for your answers
You will have to make different widgets for each part of the dog(e.g: Head, Abdomen etc.) and you will need different images for the dogs part and color, after that you can implement a button that changes the color with the 'if' function.
I have a cartoon representation of a structure. On this structure I want to show the backbone nitrogens colored. I tried
select bb, name n
then tried to color bb by representation and element
But, unfortunately, none of the options seem to give colors. Could you please let me know how to only color the backbone nitrogen?
Thanks
The cartoon representation inside a protein is an average over three atoms in each amino acid: the C alpha and the amide bond's C and N atom. I'm not sure how you imagine it should look if only the "N part" of this representation should be colored.
Be aware: the cartoon's color is determined through the C alpha, so coloring the N will do nothing, however, if you color the C alpha (name CA), you will color the full cartoon.
if you want to have a helix with alternating colors, you should take a look at
spectrum which allows an alternating color of the cartoon. Maybe you could fiddle something together with it.
E.g. a 9mer peptide would have red white and blue alternating on each amino acid like this:
spectrum count, red white blue red white blue red white blue red white blue red white blue red white blue red white blue red white blue red white blue, 9merselection
Why do computers use RGB (red, green, and blue) values for color composition rather than the primary hues, red, yellow, and blue?
The hues of magenta, yellow, and cyan are primary for subtractive combination (e.g. paints or inks) rather than additive combination such as light where red, green, and blue are primary.
Wikipedia has more detail on the whys and wherefores.
Computers use the additive colour model, which involves adding together RGB to form white, and is the usual way of forming colours when using a light source.
Printers use subtractive color, normally using Cyan(C), Magenta(M), and Yellow(Y), and often Black(K). Abbreviated CMYK
Cyan is opposite to Red, Magenta is opposite to Green, and Yellow is opposite to Blue.
This is a really simple explanation of a complex issue, the guy that came up with additive colour was James Maxwell (yes, that one), so if you dig into the many articles about him, that may explain much better.
Just for clarification, the primary colours you learn at school are incorrectly given as red, yellow & blue. In fact they are Cyan, Yellow & Magenta, just like your inkjet printer. As the previous posts state, Cyan, Yellow & Magenta are the subtractive prime colours; you see what the pigments reflect. Red, Green & Blue are the additive primary colours that CRTs, Plasmas & LCDs use.
For efficiency: the RGB model is additive. For example, superimpose pure red and pure blue light, and you get magenta. It's also easy to build into monitors. If you take a magnifying glass and look at your monitor, you'll be able to see individual red, green and blue dots that vary in intensity to compose the colors needed. As ffpf mentioned, check out Wikipedia. Here's a link to the article on the RGB color model.
Computer screens emit light to display pixels. Mixing different colours of light is called Additive colour. Additive colour uses red, green, and blue as primary colours.
Subtractive colour is how different colours of materials mix, such as paints. Subtractive colour uses red, yellow, and blue as primary colours.
How I think of it is that when light reflects off an object into your eyes, the object absorbs some of the colour, and reflects the rest to your eyes. So if an object's green, it means it's absorbing the red and the blue out of the white light. This is why mixing red, green, and blue light creates white light, but mixing red, yellow, and blue paint creates black (the mixed paint now absorbs all primary colours.) That is the reason for the difference between additive and subtractive light.
Because combining light sources (which computer monitors do) does not work the same way as combining printed ink. It's just a guess.
Color is Not Real
Color is a perception. Light exists in different wavelengths or frequencies, but the only thing that makes a certain wavelength appear to be a "color" is the nature of human perception.
The Long, Medium, and Short of it
The eye has three types of "cone" cells where are sensitive to one of three bands of light, long, medium, or short wavelengths (about 700nm to 380nm). "Long" we think of as red, medium—green, and short—blue. But each cone type covers a wider band, and there is definite overlap, especially of the long and medium cones.
It's All In Your Head
Most of the human visual system (HVS) is in the brain (62% of the brain is involved in visual processing). The overlapping cone responses are filtered by ganglion cells in the back of the eye, sent over the optic nerve, and then further filtered and processed by the visual cortex.
No Such Thing As "Primaries"
While we may call some colors "primary", there is no set of just three real colors that can make up all other colors. Pantone requires 14 different dyes to make up that set of colors for instance, and a typical artist will load their paulette with a dozen colors from which to mix.
TVs/Monitors use red, green, and blue "primaries" with wavelengths chosen with the intent to stimulate each of the three types of cones in the eye as independently as possible. However this is impossible to achieve due to the cone bandwidth overlap.
As such, you "could" say that red, green, blue were the primary colors of light, but even that is not completely correct. Yellow stimulates the "red" and "green" cones about equally, in the middle of the cone overlap. When a computer monitor displays yellow, it is displaying separate green and red, which does not mix in the air to make yellow — it just stimulates the red and green cones causing the brain to perceive yellow.
We perceive yellow, and not a reddish-green nor a greenish-red, due to the opponent process of color that is a result of the ganglion cells in the back of the eye.
Red/Green is an opponent pair, and Yellow/Blue is an opponent pair, making up four "unique" colors (Red, Yellow, Green, Blue). Since Yellow is easily created with red and green light, additive color processes typically omit yellow.
Subtracting Light
Reflected surfaces (and transparent film) "subtract" light by absorbing it, reflecting (or transmitting) only certain wavelengths. As it turns out, we get the best gamut of colors using "primaries" cyan, magenta, and yellow when working with subtractive reflected/translucent colors, as opposed to emitted light colors where we are trying to selectively stimulate each of the three cone types using red, green, and blue.
Also, it is useful to note that cyan is the "opposite" of red, magenta "opposite" of green and yellow "opposite" of blue.
And for the record, in an sRGB monitor, the red is really a red/orange. The green is really a green/yellow, and the blue is more of a violet.
For either additive or subtractive processes, the specific colors chosen are (generally) intended for creating the widest gamut of color, limited by various reasons of economics and practicality.