spinner-frames
Version, currently 1.0.01 version
- 1.0.0latestMar 30, 2021
github.com/gtramontina/spinner-frames.cr
A collection of spinner frames
13 stars
2 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
spinner-frames:
github: gtramontina/spinner-frames.cr
version: ~> 1.0.0Then run:
shards installshard.yml
- Crystal
- no constraint declared
- License
- MIT
- Author
- Guilherme J. Tramontina <guilherme.tramontina@gmail.com>
Dependencies
Development Dependencies
- ansi-escapes1.0.0github: gtramontina/ansi-escapes.crdev
README
<h1 align="center">
<p>spinner-frames.cr</p>
<sub><sup>A collection of spinner frames</sup></sub>
</h1>

---
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
spinner-frames:
github: gtramontina/spinner-frames.cr
version: <version>
```
## Usage
First require it…
```crystal
require "spinner-frames"
```
Then you can use the default charset (`:line`)…
```crystal
s = SpinnerFrames.new
5.times { print s.next } # -\|/-
```
… any of the built-in charsets…
```crystal
s = SpinnerFrames.new(SpinnerFrames::Charset[:arc])
5.times { print s.next } # ◜◠◝◞◡
```
… provide a new charset as `String`…
```crystal
s = SpinnerFrames.new("01234")
5.times { print s.next } # 01234
```
… or as `Array(String)`
```crystal
s = SpinnerFrames.new(["[ ]", "[- ]", "[ - ]", "[ -]", "[ ]"])
5.times { print s.next } # [ ][- ][ - ][ -][ ]
```
## Contributing
1. Fork it ( https://github.com/gtramontina/spinner-frames.cr/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
## Related
* https://github.com/gtramontina/ansi-escapes.cr
---
[](https://travis-ci.org/gtramontina/spinner-frames.cr)
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.0.0- Tagged
- Mar 30, 2021
- Commit
1eb18be349f9- Indexed
- yes
Dependents
Repository
github.com/gtramontina/spinner-frames.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 1