{"id":480,"date":"2010-06-20T21:29:36","date_gmt":"2010-06-20T19:29:36","guid":{"rendered":"http:\/\/www.theusrus.de\/blog\/?p=480"},"modified":"2010-06-20T21:29:36","modified_gmt":"2010-06-20T19:29:36","slug":"assigning-rainbow-colors","status":"publish","type":"post","link":"https:\/\/www.theusrus.de\/blog\/assigning-rainbow-colors\/","title":{"rendered":"Somewhere over the Rainbow"},"content":{"rendered":"<p>Color brushing (i.e., the persistent assignment of colors to cases) was one of the most requested and most ignored (on my side) features for <a href=\"http:\/\/www.rosuda.org\/Mondrian\" target=\"_blank\">Mondrian<\/a>. I gave in at some point and ever since I get the never ending complaint over using &#8220;the wrong&#8221; colors &#8211; which I now ignore for the most part as n users will have n different preferred color schemes.<\/p>\n<p>Nonetheless, there is the continuous color scale which usually utilizes some sort of rainbow color scheme in order to differentiate between a maximum of hues. The whole thing seem to be pretty easy to implement in HSB color space. Once you decided on some reasonable S and B you only need to go round in the H circle and you are done. Here is what you get:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Color Old\" src=\"http:\/\/www.theusRus.de\/Blog-files\/ColorsOld.png\" alt=\"\" width=\"558\" height=\"228\" \/><\/p>\n<p>Looks pretty neat, but has two obvious problems:<\/p>\n<ul>\n<li>If you use the complete circle, you won&#8217;t be able to distinguish between the values at the edges, as they are actually the same<\/li>\n<li>If you use a background color (light yellow for Mondrian) you should avoid this color altogether.<\/li>\n<\/ul>\n<p>The possible solution solves both problems at once. The first problem needs to avoid a certain color range such that &#8220;minimum color&#8221; and &#8220;maximum color&#8221; are far enough apart. For Mondrian, this is certainly the yellow range; which solves the second problem. This is what the update looks like:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Color New\" src=\"http:\/\/www.theusRus.de\/Blog-files\/ColorsNew.png\" alt=\"\" width=\"557\" height=\"231\" \/><\/p>\n<p>No spectacular change, but this is actually the solution which I should have thought of in the first place.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Color brushing (i.e., the persistent assignment of colors to cases) was one of the most requested and most ignored (on my side) features for Mondrian. I gave in at some point and ever since I get the never ending complaint over using &#8220;the wrong&#8221; colors &#8211; which I now ignore for the most part as [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-480","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/www.theusrus.de\/blog\/wp-json\/wp\/v2\/posts\/480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.theusrus.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.theusrus.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.theusrus.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.theusrus.de\/blog\/wp-json\/wp\/v2\/comments?post=480"}],"version-history":[{"count":4,"href":"https:\/\/www.theusrus.de\/blog\/wp-json\/wp\/v2\/posts\/480\/revisions"}],"predecessor-version":[{"id":484,"href":"https:\/\/www.theusrus.de\/blog\/wp-json\/wp\/v2\/posts\/480\/revisions\/484"}],"wp:attachment":[{"href":"https:\/\/www.theusrus.de\/blog\/wp-json\/wp\/v2\/media?parent=480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.theusrus.de\/blog\/wp-json\/wp\/v2\/categories?post=480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.theusrus.de\/blog\/wp-json\/wp\/v2\/tags?post=480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}