diff options
| author | aura <nw@moneybot.cc> | 2026-03-16 15:40:03 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-03-16 15:40:03 +0100 |
| commit | 991352b0d2767e6bd1a46f554db4ac9d208c13ad (patch) | |
| tree | ec89dcc1bf6e5ad21474ee91a8b9d0f8301c7f1c /src/util/color.h | |
| parent | e59a032fb9afac6496acf3fba51a2a329bd0f992 (diff) | |
finish prop rewrite
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 ); } |
