Start implementing the SVG animation library (and tool)

This commit is contained in:
TennesseeTrash 2025-05-30 19:28:42 +02:00
parent e1af823502
commit 4e87a67296
5 changed files with 298 additions and 11 deletions

View file

@ -4,15 +4,15 @@
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 (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(argv[1], argv[2])) {
if (!Kanimaji::Animate("084b8.svg", "084b8-out.svg")) {
std::println("Could not animate the specified file.");
return 1;
}