diff options
Diffstat (limited to 'src/util/color.h')
| -rw-r--r-- | src/util/color.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/color.h b/src/util/color.h index 526cddc..8b1a259 100644 --- a/src/util/color.h +++ b/src/util/color.h @@ -1,5 +1,5 @@ #pragma once -#include "typedef.h" +#include "string.h" #include <math.h> struct CLR { @@ -166,3 +166,5 @@ struct CLR { return *this; } }; + +inline STR to_str( CLR c ) { return STR( "%.02f %.02f %.02f %.02f", c.r, c.g, c.b, c.a ); } |
