Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nate-parrott/ball
https://github.com/nate-parrott/ball
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nate-parrott/ball
- Owner: nate-parrott
- License: mit
- Created: 2024-06-22T03:13:56.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-02T22:12:34.000Z (4 months ago)
- Last Synced: 2024-10-01T18:22:25.441Z (about 1 month ago)
- Language: Swift
- Size: 11.7 MB
- Stars: 1,641
- Watchers: 5
- Forks: 34
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Screen recording of a ball bouncing](Recording.gif)
# Ball
It's a little ball that lives in your dock. You can drag it and it'll bounce around the screen. You can also swipe on it with two fingers. It comes in red. You can flick it, bounce it, try to make it hit the corner, see how many times it can bounce, count how many times it hits the wall, and more. It's a ball. It's fun. It's a ball.
**Download in [Releases](https://github.com/nate-parrott/ball/releases)**
## Credits
It's inspired by [Nate Heagy's](https://heagy.com/) widget for the OS X Dashboard, which I remember fondly because someone put it on our class [eMac](https://en.wikipedia.org/wiki/EMac) in fifth grade. It was a lot bouncier and come in more colors, but it didn't go in the dock!
Credit also goes to Wessley Roche, who made this [little Gist](https://gist.github.com/wonderbit/c8896ff429a858021a7623f312dcdbf9) explaining how to get the position of the dock. I've [extended this](https://github.com/nate-parrott/ball/blob/main/Ball/DockUtils.swift#L65) to try to estimate the position of the app's dock icon when it's clicked, so the ball can animate out of it.
## Final words
I hope you enjoy this little ball.