I´m trying to convert a 24bit rgb array (const unsigned int array0[] = {

I´m trying to convert a 24bit rgb array (const unsigned int array0[] = { 0x000000, 0x236e80, 0x05445f, 0x286876, 0x256366 …) to a hsv color mode (const uint8_t PROGMEM array17[] = { 2, 2, 2, 2, 2, 2, 2, … ) … my idea is to save memory whith PROGMEM, because my array is too big for nano flash.

my problem is how to do it…