dad626f9fe8ef4f14a3297b77fdbc951b8b7630e ceisenhart Fri Mar 18 14:56:50 2016 -0700 changing the white to black rainbow to be called greyscale as suggested by Jim, refs #16216 diff --git src/inc/rainbow.h src/inc/rainbow.h index c35e86c..e75dbed 100644 --- src/inc/rainbow.h +++ src/inc/rainbow.h @@ -7,23 +7,23 @@ #include "memgfx.h" #endif struct rgbColor saturatedRainbowAtPos(double pos); /* Given pos, a number between 0 and 1, return a saturated rainbow rgbColor * where 0 maps to red, 0.1 is orange, and 0.9 is violet and 1.0 is back to red */ struct rgbColor lightRainbowAtPos(double pos); /* Given pos, a number between 0 and 1, return a lightish rainbow rgbColor * where 0 maps to red, 0.1 is orange, and 0.9 is violet and 1.0 is back to red */ struct rgbColor veryLightRainbowAtPos(double pos); /* Given pos, a number between 0 and 1, return a light rainbow rgbColor * where 0 maps to red, 0.1 is orange, and 0.9 is violet and 1.0 is back to red */ -struct rgbColor whiteToBlackRainbowAtPos(double pos); +struct rgbColor greyScaleRainbowAtPos(double pos); /* Given pos, a number between 0 and 1, return a blackToWhite rainbow rgbColor * where 0 maps to white, 0.1 is grey, and 1 is black. */ struct rgbColor *getRainbow(struct rgbColor (*rainbowAtPos)(double), int size); /* Return array filled with rainbow of colors */ #endif /* RAINBOW_H */