This commit is contained in:
Tod Kurt 2022-02-10 16:10:05 -08:00
parent 5355092e4a
commit 17440ec10c
1 changed files with 1 additions and 0 deletions

View File

@ -42,5 +42,6 @@ int32_t colorwheel(mp_float_t pos) {
shift2 = 0;
}
int p = (int)(pos * 3);
p = (p<256) ? p : 255;
return (p << shift1) | ((255 - p) << shift2);
}