kanjivg-tools/Tools/KanimajiTool/Main.cpp

21 lines
546 B
C++

#include <Kanimaji/Kanimaji.hpp>
#include <print>
int main(const int argc, const char *argv[])
{
//if (argc != 3) {
// std::println("Usage: KanimajiTool SOURCE DESTINATION\n\n"
// "SOURCE - Path to a file from the KanjiVG dataset.\n"
// "DESTINATION - Path to write the animated SVG.\n"
// );
// return 1;
//}
if (!Kanimaji::Animate("084b8.svg", "084b8-out.svg")) {
std::println("Could not animate the specified file.");
return 1;
}
return 0;
}