This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void fluffy_blobs_wallpaper() { | |
| //get_ready(); // SmartMatrix only | |
| //rgb24 *buffer = backgroundLayer.backBuffer(); // SmartMatrix only | |
| // Here are some global parameters to play with | |
| timings.master_speed = 0.015; // master speed dial for everything | |
| float size = 0.15; // size of the blobs - think of it as a global zoom factor | |
| float radial_speed = 1; // changes the speed of the rotations only |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Polar basics demo for the | |
| // FastLED Podcast #2 | |
| // https://www.youtube.com/watch?v=KKjFRZFBUrQ | |
| // | |
| // VO.1 preview version | |
| // by Stefan Petrick 2023 | |
| // This code is licenced under a | |
| // Creative Commons Attribution | |
| // License CC BY-NC 3.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "FastLED.h" | |
| // matrix size | |
| uint8_t Width = 16; | |
| uint8_t Height = 16; | |
| uint8_t CentreX = (Width / 2) - 1; | |
| uint8_t CentreY = (Height / 2) - 1; | |
| // NUM_LEDS = Width * Height | |
| #define NUM_LEDS 256 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| FastLED Fire 2018 by Stefan Petrick | |
| The visual effect highly depends on the framerate. | |
| In the Youtube video it runs at arround 70 fps. | |
| https://www.youtube.com/watch?v=SWMu-a9pbyk | |
| The heatmap movement is independend from the framerate. | |
| The actual scaling operation is not. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| float speed = 0.3; // speed of the movement along the Lissajous curves | |
| float size = 3; // amplitude of the curves | |
| for (uint8_t y = 0; y < Height; y++) { | |
| for (uint8_t x = 0; x < Width; x++) { | |
| float cx = y + float(size * (sinf (float(speed * 0.003 * float(millis() ))) ) ) - 8; // the 8 centers the middle on a 16x16 | |
| float cy = x + float(size * (cosf (float(speed * 0.0022 * float(millis()))) ) ) - 8; | |
| float v = 127 * (1 + sinf ( sqrtf ( ((cx * cx) + (cy * cy)) ) )); | |
| uint8_t data = v; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| A FastLED matrix example: | |
| A simplex noise field fully modulated and controlled by itself | |
| written by | |
| Stefan Petrick 2017 | |
| Do with it whatever you like and show your results to the FastLED community | |
| https://plus.google.com/communities/109127054924227823508 | |
| */ | |
| #include "FastLED.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| A FastLED matrix example: | |
| A simplex noise field fully modulated and controlled by itself | |
| written by | |
| Stefan Petrick 2017 | |
| Do with it whatever you like and show your results to the FastLED community | |
| https://plus.google.com/communities/109127054924227823508 | |
| */ | |
| #include "FastLED.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void noise_noise1() { | |
| CRGBPalette16 Pal( pit ); | |
| /* here is how the palette looks like: | |
| DEFINE_GRADIENT_PALETTE( pit ) { | |
| 0, 3, 3, 3, | |
| 64, 13, 13, 255, // blue | |
| 128, 3, 3, 3, | |
| 192, 255, 130, 3, // orange |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // as showed on youtube | |
| void noise_audio2() { | |
| read_audio(); | |
| CRGBPalette16 Pal( pit3 ); // the red one | |
| y[0] += (bands[4] - 10) * 4; | |
| scale_x[0] = 10000 - (bands[0] * 40); | |
| scale_y[0] = scale_x[0]; | |
| byte layer = 0; | |
| for (uint8_t i = 0; i < Width; i++) { | |
| uint32_t ioffset = scale_x[layer] * (i - CentreX); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * A FastLED example showing how to | |
| * map a virtual 2d matrix onto a circular led setup | |
| * | |
| * limitations: works so far only up to 255 leds | |
| * | |
| * written by Stefan Petrick 2016 | |
| */ | |
| #include "FastLED.h" |
NewerOlder