We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b536792 commit 6a26944Copy full SHA for 6a26944
wled00/FX.cpp
@@ -7610,7 +7610,7 @@ uint16_t mode_2Doctopus() {
7610
const int C_Y = (rows / 2) + ((SEGMENT.custom2 - 128)*rows)/255;
7611
for (int x = 0; x < cols; x++) {
7612
for (int y = 0; y < rows; y++) {
7613
- rMap[XY(x, y)].angle = 40.7436f * atan2f((y - C_Y), (x - C_X)); // avoid 128*atan2()/PI
+ rMap[XY(x, y)].angle = int(40.7436f * atan2f((y - C_Y), (x - C_X))); // avoid 128*atan2()/PI
7614
rMap[XY(x, y)].radius = hypotf((x - C_X), (y - C_Y)) * mapp; //thanks Sutaburosu
7615
}
7616
0 commit comments