A led index based animation example.
index.gif |
|
#include "pixled.h"
#include "pixled/gif_output.h"
int main(int argc, char** argv) {
pixled::GifOutputConfig config;
config.draw_led_index = true;
pixled::GifOutput out(480, pixled::FIT_WIDTH, 20, panel, config);
{
pixled::rgb(0, 0, Cast<std::uint8_t>(255 - 255 * T() / 20))
);
out.write(runtime, 40, "index.gif");
}
}
Definition: conditional.h:33
Definition: geometry.h:41
Definition: mapping.h:150
Definition: animation.cpp:3