Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chalk-animation #95

Closed
Kikobeats opened this issue Jul 2, 2017 · 8 comments
Closed

chalk-animation #95

Kikobeats opened this issue Jul 2, 2017 · 8 comments

Comments

@Kikobeats
Copy link

Kikobeats commented Jul 2, 2017

Now with true color support at chalk 2.0 could be awesomeness a module for create simple terminal colors animations like:

  • rainbow (of course!)
  • lineal gradient
  • loading/karaoke
  • pulse/heartbeat
  • neon
  • need more ideas (?)
@bokub
Copy link

bokub commented Jul 18, 2017

Great idea! Do you think it should be part of chalk, or a completely different module?

@Kikobeats
Copy link
Author

@bokub I think chalk is tiny and focused, this is more for fun and need to alive in a different but complementary package.

@bokub
Copy link

bokub commented Jul 18, 2017

I'm working on it.

@Qix-
Copy link
Collaborator

Qix- commented Jul 18, 2017

FWIW that example is in the examples/ directory in the chalk project.

@bokub
Copy link

bokub commented Jul 26, 2017

So I've created a package called chalk-animation which can output this animated rainbow.
The animations can be stopped and resumed, and the speed is customizable.

As I needed to output gradients in the terminal, I have also created gradient-string, which I use in chalk-animation.

Currently, only the rainbow and the pulse effect are available, so don't hesitate to add new animations and submit your pull requests! 👍

@sindresorhus
Copy link
Owner

@bokub Nice work!

The readme needs some animated GIFs of the effects though. Users are visual creatures.

@bokub
Copy link

bokub commented Jul 31, 2017

@sindresorhus Done! Check it out here

@sindresorhus
Copy link
Owner

Sexy! Can you do a pull request adding a link to it in the Chalk readme? (The related section)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants