Arduino can only display one color at a time

I can control every LED and they can all have different colors, but it can only be one of the color values, either red or green or blue.

I use the FAST LED library and I think my code is fine.

#include "FastLED.h"

#define Num_LEDS 30
#define PIN 5
CRGBArray<Num_LEDS> leds;
uint8_t hue[Num_LEDS];

void setup() {
  // put your setup code here, to run once:
 FastLED.addLeds<NEOPIXEL, PIN>(leds, Num_LEDS);
 for(int i = 0; i < Num_LEDS; i++)
}

void loop() {
  // put your main code here, to run repeatedly:
  for(int i = 0; i < Num_LEDS; i++)
  {
    leds[i] = CHSV(hue[i]++,255,255);
    
  }
  FastLED.show();
  delay(10);
}

What is it you're trying to do exactly?

I think

uint8_t hue[Num_LEDS];

should be

uint8_t hue;

Despereaux:
What is it you're trying to do exactly?

Display RGB LEDs

PaulRB:
I think

uint8_t hue[Num_LEDS];

should be

uint8_t hue;

It doesn't compile

It doesn't compile

Yes it does.

In your original code you have a incomplete for loop at the end of the setup function.

Then you have to remove the [ ] s in the use of the hue variable in the rest of the code.