Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Tunnel 226 byte
- //Fastled 16x16 rgb led matrix demo
- //Yaroslaw Turbin, 10.12.2020
- //https://vk.com/ldirko
- //https://www.reddit.com/user/ldirko/
- //for one tweet codegolf competition
- //https://www.reddit.com/r/FastLED/comments/jyly1e/challenge_fastled_sketch_that_fits_entirely_in_a/
- //https://twitter.com/skullctf/status/1329474477185445890
- //look how it look in online emulator:
- //https://wokwi.com/arduino/projects/284787348787429896
- #import<FastLED.h>
- CRGB l[256];byte i;int x,y,t;void setup(){LEDS.addLeds<WS2812,3,GRB>(l,256);}void loop(){t=millis()/8;x=i%16;y=i/16;l[i].setHue(sqrt16((x-=sin8(x+t/3)/16)*x+(y-=cos8(y+t/2)/16)*y)*15-t);if(!++i)LEDS.show();}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement