color-theory

How to Judge if a Color is Green?

二次信任 提交于 2021-02-20 02:50:50
问题 What is the formula for deciding if an rgb code is green? Here is an attempt: public boolean isGreen(Color color){ return (color.getGreen() > 0.8*(color.getBlue()) && color.getBlue() > color.getRed()); } That is, return true if the green value of rgb is considerably greater than the blue, and the blue is greater than the red. A test was conducted on its accuracy. Methods: A JavaFX program generated 132 orbs every 6 seconds, each with an rgba (alpha is irrelevant in this case) value of (Math

Order color based on Hue, Saturation, Value in R

﹥>﹥吖頭↗ 提交于 2020-01-30 08:16:06
问题 This question is combination of R and color-theory I am trying to order color based on Hue (h), then Saturation (s), and finally Value (v) Here are the painted colors and dataframe from code at end of this post Painted Dataframe [,1] [,2] [,3] [,4] [,5] h 0.6229508 0.2767296 0.1323283 0.9790476 0.9093567 s 0.6421053 0.5145631 0.7928287 0.9510870 0.5480769 v 0.3725490 0.8078431 0.9843137 0.7215686 0.4078431 Do I find the color with lowest h value, keep that as 1st position, out of remaining 4

Given a finite palette, how to sort from Hot to Cold, i.e. Diverging

試著忘記壹切 提交于 2020-01-01 04:44:06
问题 Update (Original question below) Issue is partially solved. Still trying to figure out how to extend to other color combinations If I use this code hLIM <- rgb2hsv(col2rgb('#8000ff'))['h', ] sLIM <- rgb2hsv(col2rgb('#8000ff'))['s', ] vLIM <- rgb2hsv(col2rgb('#8000ff'))['v', ] rankorder <- order((hLIM-tHSVcol[,1] + (hLIM < tHSVcol[,1])), (sLIM-tHSVcol[,2] + (sLIM < tHSVcol[,2])), (vLIM-tHSVcol[,3] + (vLIM < tHSVcol[,3]))) orderType <- "HSV Ordering" I am able to sort this Unsorted Color

Algorithm to find which two colors mix to form a third color (in JavaScript)

徘徊边缘 提交于 2019-12-23 21:27:04
问题 I am looking for a library/algorithm/technique to take the 3 additive or subtractive colors and determine what combination of two results in some color x . This is not a correct example (as I don't know much about color theory yet), but this is to illustrate the point. Say you have a color like greenish brown #45512b . The problem to solve is figure out -- for the two systems (additive and subtractive) -- the pair of colors that will generate greenish brown (the given color). So you have the

Programming a simple color scheme generator

心不动则不痛 提交于 2019-12-05 01:20:49
问题 we are developing a website cms in C# and want to integrate / develop a small and simple color scheme generator as like as colorschemedesigner.com (of course simplier) to automatically suggest harmonizing template colors (for body background, text, heading etc.). There are 6 methods for color creation on that website. We would like to reprogram the logic of the "accented analogic" algorithm. Does anyone know how to easily realize this, or where we could find more information about this topic.

Color Theory: How to convert Munsell HVC to RGB/HSB/HSL

别来无恙 提交于 2019-12-04 07:39:51
问题 I'm looking at at document that describes the standard colors used in dentistry to describe the color of a tooth. They quote hue , value , chroma values, and indicate they are from the 1905 Munsell description of color: The system of colour notation developed by A. H. Munsell in 1905 identifies colour in terms of three attributes: HUE, VALUE (Brightness) and CHROMA (saturation) [15] HUE (H): Munsell defined hue as the quality by which we distinguish one colour from another. He selected five

Programming a simple color scheme generator

痴心易碎 提交于 2019-12-03 16:58:32
we are developing a website cms in C# and want to integrate / develop a small and simple color scheme generator as like as colorschemedesigner.com (of course simplier) to automatically suggest harmonizing template colors (for body background, text, heading etc.). There are 6 methods for color creation on that website. We would like to reprogram the logic of the "accented analogic" algorithm. Does anyone know how to easily realize this, or where we could find more information about this topic. How to programatically find a set of harmonizing colors for a given base? Or are there already some

Color Theory: How to convert Munsell HVC to RGB/HSB/HSL

大兔子大兔子 提交于 2019-12-02 16:56:52
I'm looking at at document that describes the standard colors used in dentistry to describe the color of a tooth. They quote hue , value , chroma values, and indicate they are from the 1905 Munsell description of color: The system of colour notation developed by A. H. Munsell in 1905 identifies colour in terms of three attributes: HUE, VALUE (Brightness) and CHROMA (saturation) [ 15 ] HUE (H): Munsell defined hue as the quality by which we distinguish one colour from another. He selected five principle colours: red, yellow, green, blue, and purple; and five intermediate colours: yellow-red,

Converting an RGBW color to a standard RGB/HSB representation

≡放荡痞女 提交于 2019-11-30 15:45:35
问题 I am building an interface for light management in a home automation system. I managed to control standard on/off and dimmable light for various providers with little problem, but now I am stuck with a problem related to RGB light. The light I am currently using is an RGBW led strip - specifically, I am working with a low-cost RGBW light: the light is composed by four led and every led can be controlled individually. To be more clear - I am working on some c# code that should retrieve the

Does the .Net Color struct use an HSB or HSL colour space?

那年仲夏 提交于 2019-11-30 14:58:41
问题 As I understand it HSL and HSB colour spaces are very similar, both use the same 0-360 colour wheel for hue and the same 0-1 value for saturation. The one difference between them is that in the HSB model you have brightness, where 0 is black and 1 is the colour at full intensity, while in HSL you have lightness/luminosity, where 0 is still black but 1 is white. The .net Color struct uses the RGB space, but has GetHue() , GetSaturation() and GetBrightness() functions. The documentation here is