#include <iostream>
Go to the source code of this file.
 | 
| const color  | white (1, 1, 1) | 
|   | 
| const color  | black (0, 0, 0) | 
|   | 
| const color  | red (1, 0, 0) | 
|   | 
| const color  | green (0, 1, 0) | 
|   | 
| const color  | blue (0, 0, 1) | 
|   | 
| const color  | pink (1, 0.5, 0.5) | 
|   | 
| const color  | lighterpink (1, 0.8, 0.8) | 
|   | 
| const color  | magenta (1, 0, 1) | 
|   | 
| const color  | yellow (1, 1, 0) | 
|   | 
| const color  | cyan (0, 1, 1) | 
|   | 
| const color  | gray (0.5, 0.5, 0.5) | 
|   | 
| const color  | darkergray (0.3, 0.3, 0.3) | 
|   | 
| const color  | darkgray (0.3, 0.3, 0.3) | 
|   | 
| const color  | lightgray (0.6, 0.6, 0.6) | 
|   | 
| const color  | lightergray (0.8, 0.8, 0.8) | 
|   | 
| const color  | azure (0, 0.5, 1) | 
|   | 
| const color  | orangered (1, 0.27, 0) | 
|   | 
| const color  | seashell (1, 0.96, 0.93) | 
|   | 
| const color  | limegreen (0.2, 0.8, 0.2) | 
|   | 
| const color  | wheat (0.96, 0.87, 0.7) | 
|   | 
| color  | MakeUpColor (int num) | 
|   | 
| color  | Gradient (double val, const color &base, const color &back=color(0.99, 0.99, 0.99)) | 
|   | 
| color  | GradientMult (double val, const color &neg, const color &pos, const color &back=color(0.99, 0.99, 0.99)) | 
|   | 
      
        
          | const color azure  | 
          ( | 
          0  | 
          ,  | 
        
        
           | 
           | 
          0.  | 
          5,  | 
        
        
           | 
           | 
          1  | 
            | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | const color black  | 
          ( | 
          0  | 
          ,  | 
        
        
           | 
           | 
          0  | 
          ,  | 
        
        
           | 
           | 
          0  | 
            | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | const color blue  | 
          ( | 
          0  | 
          ,  | 
        
        
           | 
           | 
          0  | 
          ,  | 
        
        
           | 
           | 
          1  | 
            | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | const color cyan  | 
          ( | 
          0  | 
          ,  | 
        
        
           | 
           | 
          1  | 
          ,  | 
        
        
           | 
           | 
          1  | 
            | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | const color darkergray  | 
          ( | 
          0.  | 
          3,  | 
        
        
           | 
           | 
          0.  | 
          3,  | 
        
        
           | 
           | 
          0.  | 
          3  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | const color darkgray  | 
          ( | 
          0.  | 
          3,  | 
        
        
           | 
           | 
          0.  | 
          3,  | 
        
        
           | 
           | 
          0.  | 
          3  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
Returns the gradient color in between base and back. Use this for e.g. density plots 
 
 
Returns the gradient via an intermediate on a scale between -1 and +1, e.g. for heat maps 
 
 
      
        
          | const color gray  | 
          ( | 
          0.  | 
          5,  | 
        
        
           | 
           | 
          0.  | 
          5,  | 
        
        
           | 
           | 
          0.  | 
          5  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | const color green  | 
          ( | 
          0  | 
          ,  | 
        
        
           | 
           | 
          1  | 
          ,  | 
        
        
           | 
           | 
          0  | 
            | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | const color lightergray  | 
          ( | 
          0.  | 
          8,  | 
        
        
           | 
           | 
          0.  | 
          8,  | 
        
        
           | 
           | 
          0.  | 
          8  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | const color lighterpink  | 
          ( | 
          1  | 
          ,  | 
        
        
           | 
           | 
          0.  | 
          8,  | 
        
        
           | 
           | 
          0.  | 
          8  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | const color lightgray  | 
          ( | 
          0.  | 
          6,  | 
        
        
           | 
           | 
          0.  | 
          6,  | 
        
        
           | 
           | 
          0.  | 
          6  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | const color limegreen  | 
          ( | 
          0.  | 
          2,  | 
        
        
           | 
           | 
          0.  | 
          8,  | 
        
        
           | 
           | 
          0.  | 
          2  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | const color magenta  | 
          ( | 
          1  | 
          ,  | 
        
        
           | 
           | 
          0  | 
          ,  | 
        
        
           | 
           | 
          1  | 
            | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | color MakeUpColor  | 
          ( | 
          int  | 
          num | ) | 
           | 
        
      
 
Method to generate a random color. 
 
 
      
        
          | const color orangered  | 
          ( | 
          1  | 
          ,  | 
        
        
           | 
           | 
          0.  | 
          27,  | 
        
        
           | 
           | 
          0  | 
            | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | const color pink  | 
          ( | 
          1  | 
          ,  | 
        
        
           | 
           | 
          0.  | 
          5,  | 
        
        
           | 
           | 
          0.  | 
          5  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | const color red  | 
          ( | 
          1  | 
          ,  | 
        
        
           | 
           | 
          0  | 
          ,  | 
        
        
           | 
           | 
          0  | 
            | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | const color seashell  | 
          ( | 
          1  | 
          ,  | 
        
        
           | 
           | 
          0.  | 
          96,  | 
        
        
           | 
           | 
          0.  | 
          93  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | const color wheat  | 
          ( | 
          0.  | 
          96,  | 
        
        
           | 
           | 
          0.  | 
          87,  | 
        
        
           | 
           | 
          0.  | 
          7  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | const color white  | 
          ( | 
          1  | 
          ,  | 
        
        
           | 
           | 
          1  | 
          ,  | 
        
        
           | 
           | 
          1  | 
            | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | const color yellow  | 
          ( | 
          1  | 
          ,  | 
        
        
           | 
           | 
          1  | 
          ,  | 
        
        
           | 
           | 
          0  | 
            | 
        
        
           | 
          ) | 
           |  |