//twinkle 2022 
//Yaroslaw Turbin
//https://vk.com/ldirko
//https://www.reddit.com/user/ldirko/
//https://twitter.com/ldir_ko
//https://www.youtube.com/c/ldirldir

#include "FastLED.h"
 
#define DATA_PIN 3 
#define BRIGHTNESS 255 
#define NUM_LEDS 180

CRGB leds[NUM_LEDS+1];

void setup() {
  FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
  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 / 8);
    nblend(leds[i], CHSV(hue + offset, 255, bright), 128);
  }
  delay(20);
  FastLED.show();
}