diff options
Diffstat (limited to 'src/resources/dye.h')
-rw-r--r-- | src/resources/dye.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/resources/dye.h b/src/resources/dye.h index 51d5d65c..e05f2d5e 100644 --- a/src/resources/dye.h +++ b/src/resources/dye.h @@ -44,10 +44,16 @@ class DyePalette void addLastColor(const int color[3]); /** - * Gets a pixel color depending on its intensity. + * Gets a pixel color depending on its intensity. First color is + * implicitly black (0, 0, 0). */ void getColor(int intensity, int color[3]) const; + /** + * Gets a pixel color depending on its intensity. + */ + void getColor(double intensity, int color[3]) const; + private: struct Color { unsigned char value[3]; }; |