From 347bd3aa594f9d3793e149d22ab3f71a4a2128f6 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Wed, 12 Apr 2017 23:07:50 +0200 Subject: [PATCH] Add a Solarized palette too Thanks to @erikmh for the suggestion! Signed-off-by: Gergely Nagy --- README.md | 5 ++++- src/Kaleidoscope/FingerPainter.h | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2784e13f..c5e2e372 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,10 @@ started with the plugin. While the code is under the GPL-3, the `FINGERPAINTER_PALETTE_PASTEL` palette was created by [Conache][conache], and is under a [CC-BY-SA][license:cc-by-sa] -license. +license; the `FINGERPAINTER_PALETTE_SOLARIZED` palette was created +by [Ethan Schoonover][solarized], and is under the [MIT][license:mit] license. + [solarized]: http://ethanschoonover.com/solarized [conache]: http://www.colourlovers.com/lover/Conache/loveNote [license:cc-by-sa]: http://creativecommons.org/licenses/by-sa/3.0/ + [license:mit]: https://github.com/altercation/solarized/blob/master/LICENSE diff --git a/src/Kaleidoscope/FingerPainter.h b/src/Kaleidoscope/FingerPainter.h index ae60b871..989311ef 100644 --- a/src/Kaleidoscope/FingerPainter.h +++ b/src/Kaleidoscope/FingerPainter.h @@ -90,3 +90,22 @@ extern KaleidoscopePlugins::FingerPainter FingerPainter; CRGB (0, 0, 0), \ CRGB (0, 0, 0), \ } + +#define FINGERPAINTER_PALETTE_SOLARIZED (const cRGB[]) { \ + CRGB (0, 0, 0), \ + CRGB (181, 137, 0), \ + CRGB (203, 75, 22), \ + CRGB (220, 50, 47), \ + CRGB (211, 54, 130), \ + CRGB (108, 113, 196), \ + CRGB (38, 139, 210), \ + CRGB (42, 161, 152), \ + CRGB (133, 153, 0), \ + CRGB (238, 232, 213), \ + CRGB (0, 0, 0), \ + CRGB (0, 0, 0), \ + CRGB (0, 0, 0), \ + CRGB (0, 0, 0), \ + CRGB (0, 0, 0), \ + CRGB (0, 0, 0), \ + }