/ball

Primary LanguageSwiftMIT LicenseMIT

Screen recording of a ball bouncing

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

Credits

It's inspired by Nate Heagy's widget for the OS X Dashboard, which I remember fondly because someone put it on our class 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 explaining how to get the position of the dock. I've extended this 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.