| 
    VTK-m
    2.3
    
   | 
 
Representation of a color. More...
#include <Color.h>
Public Member Functions | |
| Color () | |
| Create a black color.  More... | |
| Color (vtkm::Float32 r_, vtkm::Float32 g_, vtkm::Float32 b_, vtkm::Float32 a_=1.f) | |
| Create a color with specified RGBA values.  More... | |
| Color (const vtkm::Vec4f_32 &components) | |
| Create a color with specified RGBA values.  More... | |
| void | SetComponentFromByte (vtkm::Int32 i, vtkm::UInt8 v) | 
| Set the color value from 8 bit RGBA components.  More... | |
| vtkm::UInt8 | GetComponentAsByte (int i) | 
| void | GetRGBA (vtkm::UInt8 &r, vtkm::UInt8 &g, vtkm::UInt8 &b, vtkm::UInt8 &a) | 
| vtkm::Float64 | RawBrightness () | 
Public Attributes | |
| vtkm::Vec4f_32 | Components | 
Static Public Attributes | |
| static Color | white | 
| static Color | black | 
| static Color | red | 
| static Color | green | 
| static Color | blue | 
| static Color | cyan | 
| static Color | magenta | 
| static Color | yellow | 
| static Color | gray10 | 
| static Color | gray20 | 
| static Color | gray30 | 
| static Color | gray40 | 
| static Color | gray50 | 
| static Color | gray60 | 
| static Color | gray70 | 
| static Color | gray80 | 
| static Color | gray90 | 
Friends | |
| std::ostream & | operator<< (std::ostream &out, const Color &c) | 
Representation of a color.
The color is defined as red, green, and blue intensities as well as an alpha representation of transparency (RGBA). The class provides mechanisms to retrieve the color as 8-bit integers or floating point values in the range [0, 1].
      
  | 
  inline | 
Create a black color.
      
  | 
  inline | 
Create a color with specified RGBA values.
The values are floating point and in the range [0, 1].
      
  | 
  inline | 
Create a color with specified RGBA values.
The values are floating point and in the range [0, 1].
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Set the color value from 8 bit RGBA components.
The components are packed together into a 32-bit (4-byte) values.
      
  | 
  friend | 
      
  | 
  static | 
      
  | 
  static | 
| vtkm::Vec4f_32 vtkm::rendering::Color::Components | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
 1.8.17