Advertisement
ldirko

SinDots 260 byte

Jan 27th, 2021
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //SinDots 260 byte
  2. //Fastled 16x16 rgb matrix demo
  3. //Yaroslaw Turbin, 27.01.2021
  4. //https://vk.com/ldirko
  5. //https://www.reddit.com/user/ldirko/
  6.  
  7. //for one tweet codegolf competition
  8. //https://www.reddit.com/r/FastLED/comments/jyly1e/challenge_fastled_sketch_that_fits_entirely_in_a/
  9. //https://twitter.com/skullctf/status/1329474477185445890
  10.  
  11. //look how it look in online emulator:
  12. //https://wokwi.com/arduino/projects/288857088376963592
  13.  
  14. #include <FastLED.h>
  15. CRGB d[256];byte i,t,u;void setup(){LEDS.addLeds<WS2812,3,GRB>(d,256);}void loop(){t=millis()/15;u=t*2;for(i=13;i--;)d[XY(sin8(t+i*20)>>4,sin8(u+i*20)>>4)].setHue(i*19);blur2d(d,16,16,32);LEDS.show();}int XY(byte x,byte y){return(y*16+x);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement