Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Rotozoomer 264 byte
- //Fastled 16x16 rgb led matrix demo
- //Yaroslaw Turbin, 25.11.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/283190606061109768
- #include <FastLED.h>
- CRGB d[256];byte i,l[256];float a;void setup(){LEDS.addLeds<WS2812,3,GRB>(d,256);}void loop(){l[i]=sin8(i%16*16)/2+sin8(i)/2;d[i]=CHSV(l[abs8(i%16*sin(a)+i/16*cos(a))%16*16+abs8(i%16*cos(a)-i/16*sin(a))%16],~0,~0);if(!++i){LEDS.show();a-=.1;}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement