diff options
Diffstat (limited to 'src/math/color.h')
-rw-r--r-- | src/math/color.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/math/color.h b/src/math/color.h index 8996af2..507402d 100644 --- a/src/math/color.h +++ b/src/math/color.h @@ -48,6 +48,9 @@ public: /// multiply rgb values with scalar value. Color & operator*=(const float scalar); + + /// divide rgb values with scalar value. + Color & operator/=(const float scalar); /// assign a value to an element of this color /*! WARNING: range is not checked |