Skip to content

Commit

Permalink
Merge pull request #1 from Jewelbots/color
Browse files Browse the repository at this point in the history
added colors, new v
  • Loading branch information
SaraJo authored Feb 19, 2018
2 parents cd7a767 + 2c0bb49 commit 3e76179
Show file tree
Hide file tree
Showing 342 changed files with 10 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
extern "C"{
// __cplusplus

enum ColorLabel { OFF = 0, RED = 1, GREEN = 2, BLUE = 3, YELLOW = 4, MAGENTA = 5, CYAN = 6, WHITE = 7 };
enum ColorLabel { OFF = 0, RED = 1, GREEN = 2, BLUE = 3, YELLOW = 4, MAGENTA = 5, CYAN = 6, WHITE = 7, ORANGE = 8, GOLD = 9, PURPLE = 10, PERIWINKLE = 11, ROSE = 12, OCEAN = 13, SKY = 14 };


struct Color
Expand All @@ -21,15 +21,22 @@ struct Color
uint8_t r, g, b;
};

const Color COLORS[8] = {
const Color COLORS[15] = {
Color( 0x00, 0x00, 0x00 ), // Off
Color( 0x3F, 0x00, 0x00 ), // Red
Color( 0x00, 0x3F, 0x00 ), // Green
Color( 0x00, 0x00, 0x3F ), // Blue
Color( 0x3F, 0x3F, 0x00 ), // Yellow
Color( 0x3F, 0x00, 0x3F ), // Magenta
Color( 0x00, 0x3F, 0x3F ), // Cyan
Color( 0x3F, 0x3F, 0x3F ) // White
Color( 0x3F, 0x3F, 0x3F ), // White
Color( 0xFF, 0x45, 0x00), // Orange
Color( 0xFF, 0x8C, 0x00), // Gold
Color( 0xEE, 0x82, 0xEE), // Purple
Color( 0xE9, 0x96, 0x7A), // Periwinkle
Color( 0xB2, 0x22, 0x22), // Rose
Color( 0x20, 0xB2, 0x50), // Ocean
Color( 0x64, 0x95, 0xFA) // Sky
};


Expand Down
Loading

0 comments on commit 3e76179

Please sign in to comment.