Color.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "color3.h"
5 #include "color4.h"
6 
7 
8 namespace ion
9 {
10 
11  namespace Color
12  {
13 
14  extern color3f const White;
15  extern color3f const Black;
16 
19  struct Basic
20  {
21  static color3f const White;
22  static color3f const Grey;
23  static color3f const Black;
24  static color3f const Red;
25  static color3f const Orange;
26  static color3f const Yellow;
27  static color3f const Green;
28  static color3f const Cyan;
29  static color3f const Blue;
30  static color3f const Magenta;
31  };
32 
35  uint PackBits24(color3i const & Color);
36 
39  color3i UnpackBits24(uint const Value);
40 
43  color3i Hex(uint const Value);
44 
47  color3f HSV(float const H, float const S, float const V);
48 
51  vec3f ToHSV(color3f const & Color);
52 
53  }
54 
55 }
uint PackBits24(color3i const &Color)
Packs a color into 24 bits.
Definition: Color.cpp:24
static color3f const Red
Definition: Color.h:24
static color3f const Grey
Definition: Color.h:22
static color3f const White
Definition: Color.h:21
color3i UnpackBits24(uint const Value)
Unpacks a color from 24 bits.
Definition: Color.cpp:32
vec3f ToHSV(color3f const &Color)
Compute RGB color from HSV.
Definition: Color.cpp:112
color3f const Black
Definition: Color.cpp:11
static color3f const Magenta
Definition: Color.h:30
static color3f const Black
Definition: Color.h:23
color3< float > color3f
Definition: color3.h:132
Definition: CCatmullRomAdvancedSplineInterpolator.h:7
color3i Hex(uint const Value)
Unpacks a color from 24 bits.
Definition: Color.cpp:41
static color3f const Cyan
Definition: Color.h:28
unsigned int uint
Definition: ionTypes.h:42
static color3f const Blue
Definition: Color.h:29
color3f const White
Definition: Color.cpp:10
static color3f const Orange
Definition: Color.h:25
Some very basic colors.
Definition: Color.h:19
static color3f const Green
Definition: Color.h:27
color3f HSV(float const H, float const S, float const V)
Compute RGB color from HSV.
Definition: Color.cpp:50
static color3f const Yellow
Definition: Color.h:26