• Real-time animated clock with eFORTH web

    From Marc Petremann@21:1/5 to All on Sat Mar 18 15:12:19 2023
    Hello,

    I am pleased to present to you the very first web animation script made with eFORTH web. This program demonstrates that eFORTH can become a full-fledged web scripting language.

    https://eforth.arduino-forth.com/article/examples_web_clock

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lorem Ipsum@21:1/5 to Marc Petremann on Sat Mar 18 22:50:29 2023
    On Saturday, March 18, 2023 at 6:12:21 PM UTC-4, Marc Petremann wrote:
    Hello,

    I am pleased to present to you the very first web animation script made with eFORTH web. This program demonstrates that eFORTH can become a full-fledged web scripting language.

    https://eforth.arduino-forth.com/article/examples_web_clock

    Interesting. There seems to be a flaw in the algorithm that moves the minute and second hands. The seconds work their way around the dial, until it catches up with the minute hand. At that point, as the second hand lands on the minute hand, they both
    move forward one increment, together. So the second hand has moved two increments in one second.

    This will cause the second hand to sweep a minute in just 59 seconds, while he minute hand loses a second each minute, so takes 61 of these fast "minutes", to sweep out an hour. Oddly, this will result in the clock being nearly correct, sweeping 3599
    seconds in an hour... unless there is a similar action going on with the hour hand.

    It's hard to say if the clock is fast or slow at the moment, since the minute hand increments in the middle of the minute as swept by the second hand. So it was showing 1:47:46 and one second later shows 1:48:48. Is that fast or slow when the real time
    is 1:47:59?

    This makes my head hurt.

    --

    Rick C.

    - Get 1,000 miles of free Supercharging
    - Tesla referral code - https://ts.la/richard11209

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)