This is just a dumb clock with pretty colors. That's it!
I got inspiration for this clock from Daniel Shiffman, who runs The Coding Train YouTube channel. The specific video was "Coding Challenge #74: Clock with p5.js" It turned out p5.js really makes your life easier...
I don't always post silly apps, but when I do, I post the source in GitHub while drinking coffee :)
Attachment | Size | Date |
---|---|---|
harbour-neonclock-1.1-1.noarch.rpm | 42.79 KB | 31/05/2020 - 23:03 |
harbour-neonclock-1.2-1.noarch.rpm | 42.98 KB | 01/06/2020 - 21:34 |
harbour-neonclock-1.3-1.noarch.rpm | 43 KB | 04/06/2020 - 00:30 |
harbour-neonclock-1.4-1.noarch.rpm | 43.46 KB | 24/04/2021 - 23:53 |
harbour-neonclock-1.5-1.noarch.rpm | 43.64 KB | 13/04/2022 - 15:40 |
1.5-1
1.4-1
1.3-1
1.2-1
1.1-1
1.0-1
Comments
rob_k
Sun, 2021/04/25 - 22:01
Permalink
Mesmerizing!
direc85
Sun, 2021/04/25 - 23:12
Permalink
Haha, thanks!
olmo
Fri, 2020/06/05 - 11:30
Permalink
nice,
i like it
Markkyboy
Tue, 2020/06/02 - 01:41
Permalink
Neat, nicely done, I like it :)
Easy to modify!, which is always nice ;)
direc85
Tue, 2020/06/02 - 08:09
Permalink
Thanks!
slava
Tue, 2020/06/02 - 01:15
Permalink
Open the app full screen and then pressing power button a few times crashes the app:
I know it's a pure QML app and it should never crash but... Could it be that you're not releasing something or not stopping updates when screen is off and something piles up or... ? Something must be triggering it.
direc85
Tue, 2020/06/02 - 08:07
Permalink
I can't make it crash on my XA2 Ultra w/3.3.0... I do think the timer keeps requesting redraws when the screen ia locked currently, but it really shouldn't be able to crash anything.
Can you make it crash by starting the app, switching to, say, Settings app and then mashing lock/unlock? That's when both main page and cover page timera are in stopped state.
slava
Tue, 2020/06/02 - 12:09
Permalink
It only seems to be happening when your app is full screen. And it's not like I'm running some unusual build of Sailfish OS it's easily reproducible with e.g. Sony Xperial XA2 (h4113) running public release 3.3.0.16.
direc85
Tue, 2020/06/02 - 16:51
Permalink
I'm using XA2 Ultra (3213) with 3.3.0.16, and I just can't reproduce it...
slava
Wed, 2020/06/03 - 05:04
Permalink
Just submitted a patch - with those changes I can't crash it anymore.
direc85
Thu, 2020/06/04 - 00:31
Permalink
Patched version released!
Markkyboy
Tue, 2020/06/02 - 01:42
Permalink
cannot reproduce this on my Jolla1, tried many times, app doesn't crash.
slava
Tue, 2020/06/02 - 04:21
Permalink
Could be HW adaptation specific, I guess. But I'm consistently seeing crashes on Sony Xperia 10, X and XA2. Run the app full screen, screen off/on, unlock, screen off/on/off/on, unlock and after a few iterations - boom.
It crashes on Jolla C too, with pretty much the same backtrace.
It does look like a Qt or HW adaptation bug. There might still be a workaround, though.
slava
Mon, 2020/06/01 - 14:45
Permalink
I think this pendulum thing should be taken out - it looks quite jumpy on my X10, making low fps too noticeable. And maybe show/hide page title and pulley menu in portrait mode on tap (or double-tap). Otherwise, great little cool app!
direc85
Mon, 2020/06/01 - 21:36
Permalink
Nerd snipe time!
I tried to measure the performance, and it looks like my XA2 Ultra is only to output only about 30fps, so this clock is just too performance hungry for full 60fps... I wish there was a way to thread non-overlapping drawing operations within Canvas.onPaint() but it's not meant for that really.
Under all that, there is no reliable way to request a paint every frame to guarantee smooth animation. Fortunately, Canvas does allow using framebuffer object - or trying at least.
Having said that, I managed to squeeze more performance out of it and bumped the fps to 30. How does version 1.2 work for you?
slava
Mon, 2020/06/01 - 21:51
Permalink
It does look better, indeed! And it's only consuming 30-35% of CPU time, compared to over 90% eaten up by the previous version. Almost perfect now :)
direc85
Mon, 2020/06/01 - 23:04
Permalink
Awesome, just awesome!