Skip to content

Generates animated SVG files for KanjiVG files

License

Notifications You must be signed in to change notification settings

MyNihongo/KanjiVG.Animation

Repository files navigation

KanjiVG.Animation

Generates animated SVG files for KanjiVG files.
Animations are started when the page is loaded as well as when the SVG is clicked.

kanji kanji

Running CLI

MyNihongo.KanjiVG.Animation -s "source path" -d "destination path"

Running the service

var svgText = "<svg xmlns=\"http://www.w3.org/2000/svg\"...";
var fileName = "6f22";
var svgParams = new SvgParams();
IKanjiAnimatorService service = new KanjiAnimatorService();

var result = service.Generate(svgText, fileName, svgParams);

List of args

Name Mandatory Meaning Default value
-s or -source Yes Path to the directory with KanjiVG files
-d or -destination Yes Path to the directory where animated KanjiVG are saved
-r or -rounding No Precision of double fields 3
-outerStroke No Brush of the outer (border) stroke #666
-outerStrokeWidth No Width of the outer (border) stroke 6
-innerStroke No Brush of the inner (kanji) stroke #000
-innerStrokeWidth No Width of the inner (kanji) stroke 3