Live data from Hacker News

Bézier Clock

jackf.net

11–20 of 73 posts

Re: Bézier Clock

#15

It would be fun to have it on phones. Can you make an Android app? ;-)

You could do it! Wrap an HTML file into a WebView Activity. The Android portion is pretty much:

    public class MyWebViewActivity extends Activity {
      @Override
      protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        WebView webView = new WebView(this);
        setContentView(webView);
        webView.getSettings().setJavaScriptEnabled(true);
        webView.loadUrl("file:///android_asset/index.html");
      }
    }

Re: Bézier Clock

#16

Looks awesome, but tens of seconds need to morph faster. By the time 4 is clearly formed and visible seconds read 48. While continuous motion is aesthetic, it is hard to tell time.

The 4 actually becomes its true form at 40 (read the text below the clock), so what you were seeing was not 48 but rather 38.

Yes. Perhaps hitting the optimum form at 45 would be ideal. So 4 would start becoming clearer at 40 and then start degenerating after 45.

Re: Bézier Clock

#18

Excellent. It looks like it uses linear interpolation between the different glyphs, which makes it look a bit jerky. The author might want to try a sinusoidal interpolation so that velocity reaches zero at the key frames and the whole thing thus spends more time dwelling on the legible parts of the animation and looks smoother.

Or, y'know, a cubic Bezier interpolation.
Post reply on HN