summaryrefslogtreecommitdiff
path: root/src/util/color.h
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-03-16 15:40:03 +0100
committeraura <nw@moneybot.cc>2026-03-16 15:40:03 +0100
commit991352b0d2767e6bd1a46f554db4ac9d208c13ad (patch)
treeec89dcc1bf6e5ad21474ee91a8b9d0f8301c7f1c /src/util/color.h
parente59a032fb9afac6496acf3fba51a2a329bd0f992 (diff)
finish prop rewrite
Diffstat (limited to 'src/util/color.h')
-rw-r--r--src/util/color.h4
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 ); }