r/androiddev • • Mar 22 '21

I've created a kinetic clock using Compose

476 Upvotes

32 comments sorted by

11

u/Kendoll_Jenner Mar 22 '21

This is so cool! Will definitely peek at the source code when I get the chance! Thanks for sharing

8

u/theapache64 Mar 22 '21 edited Mar 24 '21

Thank you :) Basically, it's a 8x15 matrix that is divided into sub-matrix to show patterns. :) Feel free to raise an issue if u see some stupidity in the code ;)

9

u/randoturbouser Mar 22 '21

How is this a clock?!

OHHHHH that’s really cool!

4

u/theapache64 Mar 22 '21 edited Mar 24 '21

Consider each clock as a point in a matrix. (totaling a 8x15 matrix). It'd make more sense then :) You can some behind the scenes (development) here

7

u/[deleted] Mar 22 '21

Never thought that I would be happy to see a clock.

1

u/theapache64 Mar 22 '21

Glad you liked it

4

u/[deleted] Mar 22 '21

Is that Ubuntu 16.04? Unity Desktop?

5

u/roge- Mar 22 '21

Ubuntu 16.04 is still supported for another month :P

5

u/theapache64 Mar 22 '21

Here we go again :-|

3

u/Ryuukette Mar 22 '21

That is very cool!

Love the piano song and the way the clock is moving

2

u/theapache64 Mar 22 '21

Thank you :)

2

u/[deleted] Mar 22 '21

I've seen the real one in London - it's pretty cool but I think your animations are better than the ones they had (though I guess they may have been a bit limited by physics).

2

u/theapache64 Mar 22 '21

Its probably the easing function. Physical kinetic clocks mostly have linear easing, where as my implementation uses FastOutSlowIn easing. That must be the reason why it looks different :)

1

u/KP_2016 Mar 22 '21

A completely unrelated question, what are your machine specs?

1

u/One_Recognition_7397 Mar 22 '21

That's super awesome. Well done. Thanks for sharing

2

u/theapache64 Mar 22 '21

You're welcome :)

1

u/ShouLie1 Mar 22 '21

That is way too cool!

1

u/LEpigeon888 Mar 22 '21

I swear that after looking at it the text I read is moving, I can't see a straight line anymore I only see waves, wtf.

1

u/thelumiereguy Mar 23 '21

This is awesome bro!

1

u/theapache64 Mar 23 '21

Thanks buddy :)

1

u/blablablahe Mar 23 '21

Holy shit this is soo good!

1

u/theapache64 Mar 23 '21

Thank you :)

1

u/Hamza45001 Mar 23 '21

This is very cool, well done! :O

2

u/theapache64 Mar 23 '21

Thank you :)