summaryrefslogtreecommitdiff
path: root/src/px.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/px.h')
-rw-r--r--src/px.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/px.h b/src/px.h
index 9eb9610..1d08bd1 100644
--- a/src/px.h
+++ b/src/px.h
@@ -112,6 +112,9 @@ void _pxSpal(const PxSpalArgs *args);
.col=-1, .t=true, ._=0, __VA_ARGS__})
void _pxPalt(const PxPaltArgs *args);
+/* Try to find a color in palette, return 255 on error. */
+PxCol pxCol(uint8_t r, uint8_t g, uint8_t b);
+
/*** MATH ***/
int pxMin(int a, int b);
int pxMax(int a, int b);