1
0
Fork 0
mirror of https://git.coom.tech/drummyfish/small3dlib.git synced 2024-12-22 01:26:17 +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)
{
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)
newValue = 15;