8a868485872a387701911104129a3c48f61a0756
kent
  Tue Mar 15 12:22:29 2011 -0700
Adding rainbow generating routines.
diff --git src/inc/rainbow.h src/inc/rainbow.h
new file mode 100644
index 0000000..580786a
--- /dev/null
+++ src/inc/rainbow.h
@@ -0,0 +1,18 @@
+/* rainbow - stuff to generate rainbow colors. */
+
+#ifndef RAINBOW_H
+#define RAINBOW_H
+
+#ifndef MEMGFX_H
+#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 */
+
+#endif /* RAINBOW_H */