-
Notifications
You must be signed in to change notification settings - Fork 438
How about add a progress bar? #24
Comments
In fact, we just add an animated here is the code snip: <rect width="0" height="2" fill="#ff5722">
<animate attributeType="XML" attributeName="width" from="0" to="100%"
dur="33333ms" begin="0ms;anim_last.end+0ms"/>
</rect>
</svg> just change attribute I recommend adding 2 new options:
progress_bar = """
<rect width="0" height="2" fill="#ff5722">
<animate attributeType="XML" attributeName="width" from="0" to="100%"
dur="%(total_ms)s" begin="0ms;anim_last.end+0ms"/>
</rect>""" Thanks. |
Good idea! It requires reading an SVG file though, and that can't be done with the Python package I'm currently using for handling SVG (svgwrite). I'll probably have to replace it with lxml or something else first. |
my friend @knktc share this svg to me. I must to say its a great creative! customize code is optional. and I hav'nt find a better plan yet. |
I'm not too familiar with svg, however instead of providing On the other hand svg is already a standard format so it should be possible to external write tools to modify the file without needing to implement more and more in termtosvg itself (including the already mentioned |
This use case will be covered by SVG templates. See #53 for further discussion. |
Thank you for the awesome project!
How about add a progress bar to the recorded svg? It will show length of the animation.
adb_show.svg.zip
The attachment above is just a example, we manually add the progress bar to svg file.(sorry, I don't know how to attach svg file directly)
The text was updated successfully, but these errors were encountered: