summaryrefslogtreecommitdiffstats
path: root/core/color.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/color.cpp')
-rw-r--r--core/color.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/color.cpp b/core/color.cpp
index 328b2e3568..4bee14f3ba 100644
--- a/core/color.cpp
+++ b/core/color.cpp
@@ -213,6 +213,7 @@ void Color::invert() {
g = 1.0 - g;
b = 1.0 - b;
}
+
void Color::contrast() {
r = Math::fmod(r + 0.5, 1.0);
g = Math::fmod(g + 0.5, 1.0);