//twinkles 
//Yaroslaw Turbin 16-09-2022
//https://vk.com/ldirko
//https://www.reddit.com/user/ldirko/
//https://twitter.com/ldir_ko 
//https://github.com/ldirko/

//for u/Justin_Kaes
//original tread
//https://www.reddit.com/r/FastLED/comments/xepi9c/opposite_of_fadetoblackby/ 


#include "FastLED.h"
 
#define NUM_LEDS 64
 
// LEDs pin
#define DATA_PIN 3   
#define LED_TYPE    WS2812B
#define COLOR_ORDER GRB
 
// LED brightness
#define BRIGHTNESS 255
#define MAX_POWER_MILLIAMPS 700 
 
// Define the array of leds
CRGB leds[NUM_LEDS];


void setup() {
  FastLED.addLeds<LED_TYPE, DATA_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );
  // FastLED.setMaxPowerInVoltsAndMilliamps(5, MAX_POWER_MILLIAMPS);
  FastLED.setBrightness(BRIGHTNESS);
}
 
void loop() {

  static byte offset = 0;
  
  EVERY_N_MILLISECONDS(200) {
    offset++;
  }
  
  random16_set_seed(23579);
  double a = millis();
  for (int i = 0; i < NUM_LEDS; i++) {
    byte hue = sin8((random16() / 256) + inoise8(random16() / 256 + a / 32) + i * 4);
    byte bright = sin8(random16() / 256 + inoise8(random16() / 256 + a / 32) + a / 16);
    nblend(leds[i], CHSV(hue + offset, 255, bright), 128);
  }
  delay(20);

FastLED.show();

}
FPS: 0
Power: 0.00W