chanind / hanzi-writer

Chinese character stroke order animations and practice quizzes
https://hanziwriter.org
MIT License
3.44k stars 534 forks source link

Is it possible to show only the next stroke? #312

Open DavidGarciaManzana opened 5 months ago

DavidGarciaManzana commented 5 months ago

Let's say I have a quiz with a Hanzi that has "showOutline: false." Is it possible to make only the next stroke visible? This way, it can help indicate what to do next without making many mistakes. When you're on your second or third try, it would be a great feeling to have that smoother experience, starting with "showOutline: true" and then moving to write them without "help."

chanind commented 5 months ago

There's not an option to do that currently unfortunately. You can probably simulate this by drawing the SVG for the next stroke yourself below the SVG for the HanziWriter instance, but it would require some manual messing around with the Raw Character SVG helpers from the library.