How to fastLed without delay???

i need my arduino to do multi-tasks , that's why i need the fastled delay with millis()

here is my code(actully its an example from fastled lol)

#include<FastLED.h>
#define NUM_LEDS 64

float brightness;
int LED_R = 1;//RGB value of LED --by Jason
int LED_G = 1;
int LED_B = 1;
int LED_ID;

CRGBArray<NUM_LEDS> leds;

void setup() { 
   FastLED.addLeds<NEOPIXEL,6>(leds, NUM_LEDS);
   pinMode(0,OUTPUT);
   pinMode(1,INPUT);
   digitalWrite(0,HIGH);
}

void loop(){ 
 static uint8_t hue;

 for(int i = 0; i < NUM_LEDS/2; i++) {   
   // fade everything out
   leds.fadeToBlackBy(40);

   if(digitalRead(1) == LOW) {
     brightness = 0;
 }    
   if(digitalRead(1) == HIGH) {
     brightness = 0.1;
   }

   // let's set an led value
   leds[i] = CRGB(255*brightness,255*brightness,0*brightness);

   // now, let's first 20 leds to the top 20 leds, 
   leds(NUM_LEDS/2,NUM_LEDS-1) = leds(NUM_LEDS/2 - 1 ,0);
   FastLED.delay(33);//here is where i want to use millis()
   
   
 }
}

Oh, those beautiful italics in the code; does it look like that in the IDE? Did you read How to use this forum - please read?

FYI (and after you put your code in tags) if you use i (lower case) as an index, in these posts that's the hidden command to enter italic mode when enclosed in square brackets. Better to use j for the purpose of posting.

    if(digitalRead(1) == HIGH) {
      float brightness = 0.1;
    }

How useful. A local variable that immediately goes out of scope.

Your code has three variables named brightness. ONE is the correct number!

DKWatson:
Better to use j for the purpose of posting.

No. Better use code tags when posting the unchanged problematic code.

PaulS:

    if(digitalRead(1) == HIGH) {

float brightness = 0.1;
   }



How useful. A local variable that immediately goes out of scope.

Your code has three variables named brightness. ONE is the correct number!

oh i see, cant belive that i made these silly mistakes , im new to programming lol

Highly recommended read