aboutsummaryrefslogtreecommitdiffstats
path: root/src/gdisp/sys_defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gdisp/sys_defs.h')
-rw-r--r--src/gdisp/sys_defs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gdisp/sys_defs.h b/src/gdisp/sys_defs.h
index a40d6e80..72fdc621 100644
--- a/src/gdisp/sys_defs.h
+++ b/src/gdisp/sys_defs.h
@@ -211,6 +211,16 @@ extern "C" {
color_t gdispBlendColor(color_t fg, color_t bg, uint8_t alpha);
/**
+ * @brief Find a contrasting color
+ * @return The contrasting color
+ *
+ * @param[in] color The color to contrast
+ *
+ * @api
+ */
+color_t gdispContrastColor(color_t color);
+
+/**
* @brief Get the specified display
* @return The pointer to the display or NULL if the display doesn't exist
* @note The GDISP variable contains the display used by the gdispXxxx routines