Simple Led strip with array issue

the clear function doesn't clear the array unless if you pass in a true parameter. try:

FastLED.clear(true); // this will erase the whole leds array.	

for(int i = 0; i < 2; i++) //for all three Ary function

or you can try the following code (might be buggy, didn't compile it)

#include "FastLED.h"
#include <EEPROM.h>
#define NUM_LEDS 6
CRGB leds[NUM_LEDS];
#define DATA_PIN 6

int Arry1[] = {0, 3}; //you can delare more led to light up, for example: int Arry1[] = {0, 3, 5};
int Arry2[] = {1, 4};
int Arry3[] = {2, 5};

void setup()
{
  FastLED.addLeds<WS2811, DATA_PIN, GRB>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );
}
  
void loop(){
   delay(500);
   updateLed(Arry1, sizeof(Arry1), CRGB::Red);

   delay(500);
   updateLed(Arry2, sizeof(Arry2), CRGB::Red);

   delay(500);
   updateLed(Arry3, sizeof(Arry3), CRGB::Red);
 }

 void updateLed(int x[], int arraySize, CRGB color){
    FastLED.clear(true);
    for(int i = 0; i < arraySize; i++){
        leds[x[i]] = color; 
    }
    FastLED.show();
 }