Colors/Color gradient

From Wikibooks, the open-content textbooks collection

< Colors
Jump to: navigation, search

Color gradients can be named by :

  • dimension
  • color model
  • function used to create gradient
  • Number of colors

Contents

[edit] Dimension

[edit] 1D

Here color is proportional to 1D variable. For example in 2D space:

  • x
  • r=abs(z)
  • angle=arg(z)

[edit] 2D

Domain coloring plot of the function
ƒ(x) =(x2 − 1)(x − 2 − i)2/(x2 + 2 + 2i). The hue represents the function argument, while the saturation represents the magnitude.


Because color can be treated as more then 1D value it is used to represent more then one ( real or 1D) variable. For example :

  • Robert Munafo uses 2 values from HSV model of color [1][2]
  • John J. G. Savard uses own function [3][4]

[edit] 3D

  • Hans Lundmark page[5]

[edit] Color model

[edit] RGB

[edit] HSV

HSV-RGB-comparison.svg

[edit] Function

[edit] Number of colors

Number of color is determined by color depth :

[edit] 2 colors

[edit] 4 colors

[edit] 8 colors

[edit] 16 colors

[edit] 32 colors

[edit] 64 colors

6-bit RGB uniform palette with black borders
Image:6-bit RGB uniform palette

[edit] 128 colors

[edit] 256 colors

[edit] 512 colors

256 VGA color gradient

[edit] 16 mln of colors

[edit] References

  1. R2.1/2.C(1/2) by Robert Munafo
  2. Color by Robert Munafo
  3. The Mandelbrot Function by John J. G. Savard
  4. The Mandelbrot Function 2 by John J. G. Savard
  5. [http://www.mai.liu.se/~halun/complex/domain_coloring-unicode.html Visualizing complex analytic functions using domain coloring by Hans Lundmark ]