1
0
Fork 0
mirror of https://git.coom.tech/drummyfish/small3dlib.git synced 2024-11-21 20:39:57 +01:00

Update level.cpp

This commit is contained in:
Miloslav Číž 2019-07-07 22:07:47 +00:00
parent 8ad9c3a0dd
commit cadca6186e

View file

@ -66,6 +66,7 @@ uint32_t previousTriangle = 100;
static inline uint8_t addIntensity(uint8_t color, int16_t intensity) static inline uint8_t addIntensity(uint8_t color, int16_t intensity)
{ {
int16_t newValue = (color & 0b00001111) + intensity; // value as in HSV int16_t newValue = (color & 0b00001111) + intensity; // value as in HSV
// TODO: ^ this could be uint8? Would be faster! Also in the below function.
if (newValue >= 16) if (newValue >= 16)
newValue = 15; newValue = 15;