Английская Википедия:Color code

Материал из Онлайн справочника
Перейти к навигацииПерейти к поиску

Шаблон:Short description Шаблон:Use American English Шаблон:For-multi Шаблон:Excessive examples

Файл:25 pair color code chart.svg
25-pair color code chart used in certain kinds of wiring.

A color code is a system for encoding and representing non-color information with colors to facilitate communication. This information tends to be categorical (representing unordered/qualitative categories) though may also be sequential (representing an ordered/quantitative variable).

History

The earliest examples of color codes in use are for long-distance communication by use of flags, as in semaphore communication.[1] The United Kingdom adopted a color code scheme for such communication wherein red signified danger and white signified safety, with other colors having similar assignments of meaning.

As chemistry and other technologies advanced, it became expedient to use coloration as a signal for telling apart things that would otherwise be confusingly similar, such as wiring in electrical and electronic devices, and pharmaceutical pills.

Encoded Variable

A color code encodes a variable, which may have different representations, where the color code type should match the variable type:

  • Categorical variable - the variable may represent discrete values of unordered qualitative data (e.g. race)
  • Quantitative variable - the variable represents ordered, quantitative data (e.g. age)
    • Discrete quantitative data (e.g. the 6 sides of a die: 1,2,3,4,5,6) are sometimes treated as a categorical variable, despite the ordered nature.

Types

Шаблон:See also The types of color code are:

  • Categorical - the colors are unordered, but are chosen to maximize saliency of the colors, by maximizing color difference between all color pair permutations.
  • Continuous - the colors are ordered and form a smooth color gradient.
  • Discrete - only a subset of a continuous color code are used (still ordered), where each is distinguishable from the others.

Categorical

When color is the only varied attribute, the color code is unidimensional. When other attributes are varied (e.g. shape, size), the code is multidimensional, where the dimensions can be independent (each encoding separate variables) or redundant (encoding the same variable). Partial redundancy sees one variable as a subset of another.[2] For example, playing card suits are multidimensional with color (black, red) and shape (club, diamond, heart, spade), which are partially redundant since clubs and spades are always black and diamonds and hearts are always red. Tasks using categorical color codes can be classified as identification tasks, where a single stimulus is shown and must be identified (connotatively or denotatively), versus search tasks, where a color stimulus must be found within a field of heterogenous stimuli.[3][2] Performance in these tasks is measured by speed and/or accuracy.[2]

The ideal color scheme for a categorical color code depends on whether speed or accuracy is more important.[3] Despite humans being able to distinguish 150 distinct colors along the hue dimension during comparative task, evidence supports that color schemes where colors differ only by hue (equal luminosity and colorfulness) should have a maximum of 8 categories with optimized stimulus spacing along the hue dimension,[3] though this would not be color blind accessible. The IALA recommends categorical color codes in 7 colors: red, orange, yellow, green, blue, white & black.[4] Adding redundant coding of luminosity and colorfulness adds information and increases speed and accuracy of color decoding tasks.[3] Color codes are superior to others (encoding to letters, shape, size, etc.) in certain types of tasks. Adding color as a redundant attribute to a numeral or letter encoding in search tasks decreased time by 50-75%,Шаблон:R but in unidimensional identification tasks, using alphanumeric or line inclination codes caused less errors than color codes.Шаблон:R

Several studies demonstrate a subjective preference for color codes over achromatic codes (e.g. shapes), even in studies where color coding did not increase performance over achromatic coding.Шаблон:R Subjects reported the tasks as less monotonous and less inducing of eye strain and fatigue.Шаблон:R

The ability to discriminate color differences decreases rapidly as the visual angle subtends less than 12' (0.2° or ~2mm at a viewing distance of 50cm),[5] so color stimulus of at least 3mm in diameter or thickness is recommended when the color is on paper or on a screen.[6] Under normal conditions, colored backgrounds do not affect the interpretation of color codes, but chromatic (and/or low) illumination of surface color code can degrade performance.[3]

Criticism

Color codes present some potential problems. On forms and signage, the use of color can distract from black and white text.[7]

Color codes are often designed without consideration for accessibility to color blind and blind people, and may even be inaccessible for those with normal color vision, since use of many colors to code many variables can lead to use of confusingly similar colors.[7][8] Only 15-40% of the colorblind can correctly name surface color codes with 8-10 color categories, most of which test as mildly colorblind. This finding uses ideal illumination; when dimmer illumination is used, performance drops sharply.[8]

Examples

Systems incorporating color-coding include:

See also

References

Шаблон:Reflist

External links

Шаблон:Color topics Шаблон:Authority control

  1. Transactions of the American Society of Civil Engineers: Volume 29 (1893), p. 507.
  2. 2,0 2,1 2,2 Шаблон:Cite journal
  3. 3,0 3,1 3,2 3,3 3,4 Шаблон:Cite journal
  4. Шаблон:Cite book
  5. Шаблон:Cite journal
  6. Шаблон:Cite book
  7. 7,0 7,1 See, e.g., Michael Richard Cohen, Medication Errors (2007), p. 119.
  8. 8,0 8,1 Шаблон:Cite journal
  9. Шаблон:Cite web