Aurora - Where are palettes defined?

I’d like to create my own palette in Aurora. I see where setupIcePalette() and setupGrayscalePalette() are located. Where are the rest of the palettes defined? Is there a template to use as a guide?

Thanks!

Aurora uses palettes from the FastLED library. Most of them are pre-defined in here: https://github.com/FastLED/FastLED/blob/FastLED3.1/colorpalettes.cpp

Here’s an example from FastLED that explains how palettes work, and how to create your own: https://github.com/FastLED/FastLED/blob/FastLED3.1/examples/ColorPalette/ColorPalette.ino

They’ve also just this week added the ability to define a palette as a series of gradients. I haven’t gotten around to adding support for this in Aurora, but hope to soon, it shouldn’t take much effort: https://plus.google.com/112916219338292742137/posts/i15W5EbfdVp

Using this new ability, they’ve added support for thousands of designer palettes from cpt-city: https://plus.google.com/112916219338292742137/posts/Y4D5uwRdvFg

Thanks Jason. I found all the palettes, and better yet, all the pre-defined colors (Red, DarkSalmon, DarkSeaGreen, DarkSlateBlue, etc.) in pixeltypes.h. This really helps. Kudos for an outstanding piece of software. Aurora is simply amazing. I have the audio display running constantly on my entertainment center.

  • Tim
1 Like

I drawed Palettes for example

static const TProgmemRGBPalette16 StepkosColors_p FL_PROGMEM = {0x0000ff, 0x0f00f0, 0x1e00e1, 0x2d00d2, 0x3c00c3, 0x4b00b4, 0x5a00a5, 0x690096, 0x780087, 0x870078, 0x9600cd, 0xa50050, 0xb40041, 0xc30032, 0xd20023, 0xe10014}; static const TProgmemRGBPalette16 AutumnColors_p FL_PROGMEM = {0xbc2300, 0xc84416, 0xdc642c, 0xe69664, 0xfbb979, 0xca503d, 0x882c1c, 0x9a3631, 0xa9624e, 0xcc9762, 0xdcc0b5, 0xc1a29f, 0x826468, 0x4a3334, 0x231a1a, 0x161113}; static const TProgmemRGBPalette16 NeonColors_p FL_PROGMEM = {0x9694ac, 0x979b9b, 0x888b8c, 0x767680, 0x696f77, 0x6c736f, 0x4097b8, 0x00b1d0, 0x0f93ec, 0x3572ff, 0x4157ff, 0x6162ff, 0x686cff, 0x7473ff, 0x8689e5, 0x9e9dc6}; static const TProgmemRGBPalette16 EveningColors_p FL_PROGMEM = {0x1e0443, 0x6d0081, 0x8200ac, 0x8200ac, 0x8200ac, 0x8200ac, 0x8200ac, 0x8200ac, 0x7900a1, 0x820055, 0xc80000, 0xe57b00, 0xff9d5a, 0xc58b32, 0xd8d400, 0xffff00}; static const TProgmemRGBPalette16 WoodColors_p FL_PROGMEM = {0xcdb1a5, 0x7a4000, 0xcdb1a5, 0x7a4000, 0xcdb1a5, 0x7a4000, 0xcdb1a5, 0x7a4000, 0xcdb1a5, 0x7a4000, 0xcdb1a5, 0x7a4000, 0xcdb1a5, 0x7a4000, 0xcdb1a5, 0x7a4000}; static const TProgmemRGBPalette16 ZeebraColors_p FL_PROGMEM = {CRGB::White, CRGB::Black, CRGB::Black, CRGB::Black, CRGB::White, CRGB::Black, CRGB::Black, CRGB::Black, CRGB::White, CRGB::Black, CRGB::Black, CRGB::Black, CRGB::White, CRGB::Black, CRGB::Black, CRGB::Black}; static const TProgmemRGBPalette16 MercuryColors_p FL_PROGMEM = {0xffffff, 0xeeeeee, 0xdddddd, 0xcccccc, 0xbbbbbb, 0xaaaaaa, 0x999999, 0x888888, 0x777777, 0x666666, 0x555555, 0x444444, 0x333333, 0x222222, 0x111111, 0x000000}; static const TProgmemRGBPalette16 StepkosFireColors_p FL_PROGMEM = {0x000000, 0x0e0070, 0x1d00ad, 0x2d00c8, 0x3c00c3, 0x4b00b4, 0x5a00a5, 0x690096, 0x780087, 0x870078, 0x9600cd, 0xa50050, 0xb40041, 0xc30032, 0xd20023, 0xe10014}; static const TProgmemRGBPalette16 LakeColors_p FL_PROGMEM = {0x611de9, 0x7d7cf0, 0xa784f9, 0x8cb1ed, 0x7fffd4, 0x5ad5ec, 0x3399ff, 0x66afff, 0x50ffc1, 0x61d1e5, 0x68ff8d, 0x98ff61, 0xccff47, 0x7eff00, 0x53ff00, 0x00ff00}; static const TProgmemRGBPalette16 OrangeColors_p FL_PROGMEM = {0xffff00, 0xfff100, 0xffe100, 0xffd100, 0xffc100, 0xffb100, 0xffa100, 0xff9100, 0xff8100, 0xff7100, 0xff6100, 0xff5100, 0xff4100, 0xff3100, 0xff2100, 0xff1100}; static const TProgmemRGBPalette16 AcidColors_p FL_PROGMEM = {0xffff00, 0xd2b328, 0xd25228, 0x711323, 0x6c000c, 0x5a0c00, 0x6d373a, 0xaa5a62, 0x604564, 0x313164, 0x332765, 0x3a2465, 0x4b1665, 0x4b0069, 0x31004c, 0x200046}; static const TProgmemRGBPalette16 Hol_LightsColors_p FL_PROGMEM = {0xff0000, 0xff4000, 0xff8000, 0xd6c000, 0xffff00, 0xc0ff00, 0x80ff00, 0x40ff00, 0x00ff00, 0x00c040, 0x008080, 0x0040c0, 0x0000ff, 0x4000c0, 0x800080, 0xc00040};