#include "effect_diamond.h" #include "my_fastled.h" void DiamondEffect::loop(uint16_t ms) { for (int x=0; xwidth; x++) { for (int y=0; yheight; y++) { uint8_t distance = abs(window->height/2 - y) + abs(window->width/2 - x); CRGB col = CHSV(distance*8 - (millis()>>5)%255, 255, 255); window->setPixel(x, y, &col); } } } bool DiamondEffect::can_be_shown_with_clock() { return true; }