mirror of
https://git.coom.tech/drummyfish/small3dlib.git
synced 2024-11-20 20:29:58 +01:00
Update level.cpp
This commit is contained in:
parent
8ad9c3a0dd
commit
cadca6186e
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue