Code Monkey home page Code Monkey logo

Comments (11)

ylmrx avatar ylmrx commented on May 22, 2024 2

https://github.com/ylmrx/termtosvg/blob/ylmrx-patch-1/playpause.svg
What do you think ?
(right-click > display image). (see the red/green button upper right)
I need to implement the option to enable / disable it from CLI.
I don't want to embed some image, or have an ugly text, the color code seems the best and most straightforward to me. If you or @nbedos has a better idea, advise.

from termtosvg.

nbedos avatar nbedos commented on May 22, 2024 1

I agree, not being able to pause the animation is annoying. I'll look into it.

from termtosvg.

vuuv avatar vuuv commented on May 22, 2024

@nbedos i'm interest to this too, this maybe help: http://edutechwiki.unige.ch/en/Interactive_SVG-SMIL_animation_tutorial#Stopping_.2F_pausing_animation

from termtosvg.

ylmrx avatar ylmrx commented on May 22, 2024

currently working on this.

from termtosvg.

PetterS avatar PetterS commented on May 22, 2024

Nice! It works for me in Chrome and Firefox. But perhaps you can use Unicode ⏸ and ▶ for displaying the buttons? Or does that qualify as "ugly text"?

from termtosvg.

ylmrx avatar ylmrx commented on May 22, 2024

ugly text meant "[PAUSE]" :)
I guess all browsers which can SVG shouldn't fail to hard with these (basic) unicodes. It display like this now : https://github.com/ylmrx/termtosvg/blob/ylmrx-patch-1/termtosvg_k65gm89m.svg
I have to clean the code, and make a PR later this week ! Stay tuned :D

from termtosvg.

ylmrx avatar ylmrx commented on May 22, 2024

I wasn't able to make it before end of week, but here it is :

<3

#45

from termtosvg.

nbedos avatar nbedos commented on May 22, 2024

Here's the slider I'd like to add too.

You have to click on the red square to catch it and then you can slide it left or right to explore the whole timeline.

I know nothing about JS though so this part of the code will need some serious review.

awesome.svg.zip

from termtosvg.

styfle avatar styfle commented on May 22, 2024

@nbedos I can review JS. I already took a look at #45 and left some comments.

from termtosvg.

ylmrx avatar ylmrx commented on May 22, 2024

The slider needs quite some work (I don't know much about JS in such context). And will probably need deep modifications within render_anim() function.
I feel it should be adressed in another issue ( #24 ). Still I love where this is going !

from termtosvg.

nbedos avatar nbedos commented on May 22, 2024

This use case will be covered by SVG templates. See #53 for further discussion.

from termtosvg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.