help understanding addressable LEDs

I have this line of code that I need help with in order to control specific LEDs within a strand.

This is based on FastLED code.

I need to trigger specific LED’s 0,2,5,8,11,13

CRGB color = CRGB::Aqua;
    color.nscale8_video(val);
    for (int i = 0; i < 23; i += 3) {
      leds[i] = color;
    };

Any guidance?

Do you have a question?

your sequence – 0, 2, 5, 8, 11, 13 – isn’t intervals of 3. 0,2 and 11,13 are 2

results

  0   2
   1   0
   2   2
   3   0
   4   0
   5   2
   6   0
   7   0
   8   2
   9   0
  10   0
  11   2
  12   0
  13   2
  14   0
  15   0
  16   0
  17   0
  18   0
  19   0
  20   0
  21   0
  22   0
  23   0

code

void setup (void)
{
    Serial.begin (115200);

    byte  color = 2;
    byte  leds [24] = {};
    byte  ledSeq [] = { 0, 2, 5, 8, 11, 13 };

    for (int i = 0; i < sizeof (ledSeq); i++)
        leds [ledSeq [i]] = color;

    for (int i = 0; i < sizeof (leds); i++) {
        char s [20];
        sprintf (s, " %3d  %2d", i, leds [i]);
        Serial.println (s);
    }
}

void loop (void)
{
}

a 2nd array, similar to ledSeq could specify a unique color for each led