mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-03 19:27:54 +00:00
used cyclefix and raddif in more places; (c)spin90, (c)spin180 and spin180 functions; rephrased M_PI in terms of TAU and x._deg when applicable
This commit is contained in:
@@ -25,7 +25,7 @@ int qmode;
|
||||
|
||||
color_t rainbow_color_at(hyperpoint h) {
|
||||
ld sat = 1 - 1 / h[2];
|
||||
ld hue = atan2(h[0], h[1]) / (2 * M_PI);
|
||||
ld hue = atan2(h[0], h[1]) / TAU;
|
||||
return rainbow_color(sat, hue);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user