#include "effect_dynamic.h" #include "functions.h" #include "config.h" SingleDynamicEffect::SingleDynamicEffect() { init(); } void SingleDynamicEffect::init() { for (int i=0; idraw(); } void SingleDynamicEffect::draw() { for (int x=0; xwidth; x++) for (int y=0; yheight; y++) { int index = y/2 * window->width/2 + x/2; window->setPixel(x, y, &tiles[index]); } } boolean SingleDynamicEffect::can_be_shown_with_clock() { return true; } void MultiDynamicEffect::loop() { EVERY_N_MILLISECONDS( EFFECT_MULTI_DYNAMIC_LOOP_TIME ) { for (int i=0; idraw(); }