2025-05-25 00:42:58 +02:00
|
|
|
#include <Kanimaji/Kanimaji.hpp>
|
|
|
|
|
2025-05-25 17:19:34 +02:00
|
|
|
#include <print>
|
|
|
|
|
|
|
|
int main(const int argc, const char *argv[])
|
2025-05-25 00:42:58 +02:00
|
|
|
{
|
2025-05-30 19:28:42 +02:00
|
|
|
//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;
|
|
|
|
//}
|
2025-05-25 17:19:34 +02:00
|
|
|
|
2025-06-08 00:23:46 +02:00
|
|
|
try {
|
|
|
|
Kanimaji::AnimateFile("084b8.svg", "084b8-out.svg");
|
|
|
|
}
|
|
|
|
catch (const std::exception& e) {
|
|
|
|
std::println("Could not animate the input file");
|
2025-05-25 17:19:34 +02:00
|
|
|
return 1;
|
|
|
|
}
|
2025-05-25 00:42:58 +02:00
|
|
|
|
2025-05-25 17:19:34 +02:00
|
|
|
return 0;
|
2025-05-25 00:42:58 +02:00
|
|
|
}
|