{"id":310,"date":"2007-06-18T08:48:00","date_gmt":"2007-06-18T08:48:00","guid":{"rendered":"http:\/\/www.amibroker.org\/userkb\/2007\/06\/18\/using-custom-colors-palette-editing\/"},"modified":"2007-07-08T13:03:24","modified_gmt":"2007-07-08T13:03:24","slug":"using-custom-colors-palette-editing","status":"publish","type":"post","link":"http:\/\/www.amibroker.org\/editable_userkb\/2007\/06\/18\/using-custom-colors-palette-editing\/","title":{"rendered":"Palette Editing"},"content":{"rendered":"

article 3\/5<\/EM><\/DIV>
\n

The majority of indicators use a limited number of plots, so a few basic colors can accommodate most charting requirements. Combining this with the fact that the primary colors are easier to distinguish apart, compared to graduations of any one color, makes the colors of the rainbow a stand-out choice for everyday color preferences. Conveniently, ROYGBIV is a mnemonic that makes the rainbow numbers easy to remember when using color indexing for quick code writing.

The first sixteen numbers of the color index are reserved for custom colors, so this provides an opportunity to apply this system. (The color index is based on a zero count system so the available numbers are 0 – 15).

WARNING – THE FOLOWING PROCEDURE WILL CHANGE ALL THE DEFAULT CUSTOM COLOR INDEX NUMBERS, EXCEPT FOR BLACK, WHICH IS ONE. THIS WILL AFFECT ALL SAVED INDICATORS THAT USE CUSTOM COLOR INDEXES, OTHER THAN ONE FOR BLACK.
<\/FONT>
To match the colors of the rainbow to number 2 – 8 of the color index:
<\/STRONG>
a) go to Tools > Preferences > Colors [TAB]<\/STRONG> and click on the Palette editor <\/STRONG>button ( the Color window will open);
b) select the first box in the top row of Custom colors<\/STRONG>;

\"CustomColors001\"

c) click on White<\/STRONG>, in the Basic colors <\/STRONG>table;

\"CustomColors002\"

d) click on the Add to Custom Colors <\/STRONG>button (White will become colorCustom1 or index number 0).

\"CustomColors003\"

e) select the second box in the top row of Custom colors<\/STRONG>;
f) click on Black<\/STRONG>, in the Basic colors <\/STRONG>table;
g) click on the Add to Custom Colors <\/STRONG>button (Black will become colorCustom2 or index number 1, which is the installed default for black).
e) Repeat the three stop process for Red, Orange, Yellow, Green, Blue, Indigo and Violet using boxes 3 – 9 inclusive.
f) Use the same procedure to set the remaining seven to any preferred color.
\ng) Close the Color window and click on Apply on the Preferences window before closing it (this will confirm the new color settings).

To use a color that is not in the Basic color table:
<\/STRONG>
a) select the Custom color <\/STRONG>box to be changed, followed by the Basic color;
b) then modify the selected Basic color’s Luminescence<\/STRONG> by dragging the arrow head up and down the vertical scale. (In this example the graduated shades of grey were added to Custom Colors 13 – 16 using this technique).

\"CustomColors009\"

c) Additionally the Hue<\/STRONG> or the Saturation<\/STRONG> can be changed by clicking and holding on the moving cursor, inside the color matrix panel, and dragging it up\/down (Saturation) or left\/right (Hue).
d) When the desired color is produced in the large Color\/Solid <\/STRONG>box click the Add <\/STRONG>button.
e) Click on Apply<\/STRONG> on the way out.

\"CustomColors006\"

(In this example the Basic color Medium Grey has been changed slightly by the addition of a little Blue and a slight reduction in Red (Saturation), as well as changes to the Hue settings, while the Luminescence is constant).

The new Custom Color settings will now be available in the Color Picker, or within formulas via color index numbers 0 – 7 and 8 – 15, or colorCustom1-16.

\"CustomColors007\"

(Note that for maximum contrast between the colors it is better to use only six colors, along with black and white, as there are only three primary colors (RYB) with three possible primary combinations between them (O,G,V). Indigo is an exceptional color, not being derived solely from the Primary Colors. For this reason it is hard to distinguish between Indigo and Blue or Violet, so for clarity Indigo can be left out if desired).


<\/p>\n","protected":false},"excerpt":{"rendered":"

article 3\/5 The majority of indicators use a limited number of plots, so a few basic colors can accommodate most charting requirements. Combining this with the fact that the primary colors are easier to distinguish apart, compared to graduations of any one color, makes the colors of the rainbow a stand-out choice for everyday color […]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[90],"tags":[],"_links":{"self":[{"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/posts\/310"}],"collection":[{"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/comments?post=310"}],"version-history":[{"count":0,"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/posts\/310\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/media?parent=310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/categories?post=310"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/tags?post=310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}