Live data from Hacker News

Bézier Clock

jackf.net

31–40 of 73 posts

Re: Bézier Clock

#32
I image you would become used to reading the interpolated states eventually. That would be a pretty nice way to write fractions.

Re: Bézier Clock

#33
post #27

My crappy addition to clocks: http://myoldclock.appspot.com/ Did it in about 12 hours for a Google I/O competition 3 years ago. It's a countdown clock instead of a normal clock, but similar idea.

I liked it! You should convert it to clock.

Re: Bézier Clock

#34

I propose a new sport: Bezier clock golf, in which we try to construct a readable clock using the fewest number of control points. Current par is 5.

cool challenge, but how do you do less than 5 bezier points for the numeral 8?

Actually you just need 2 for creating an 8 if it's a closed spline. 3 If open.

Re: Bézier Clock

#35
post #27

My crappy addition to clocks: http://myoldclock.appspot.com/ Did it in about 12 hours for a Google I/O competition 3 years ago. It's a countdown clock instead of a normal clock, but similar idea.

Another entry in the "weird clocks" thread: http://sandbox.mikepurvis.com/js/clock/

Re: Bézier Clock

#37
Doesn't work unless cookies / local storage is enabled:

Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. processing.js:9503

Not sure why processing.js needs local storage to work.

Re: Bézier Clock

#38

Earlier quoted context omitted.

cool challenge, but how do you do less than 5 bezier points for the numeral 8?

Actually you just need 2 for creating an 8 if it's a closed spline. 3 If open.

Seems like open is a requirement, since not all the numerals are closed and I'm not sure how one would morph between open and closed spines. Playing around here (http://www.victoriakirst.com/beziertool/ anyone know a similar tool that has bookmarkable results so we can share work?) I'm thinking three control points should be achievable (haven't found a way to make a nice looking 4 yet, but most other numerals aren't that hard to pull off).

Re: Bézier Clock

#39
The graphics are excellent.

I'm curious about the code organization: it seems that processing.js contains both the application code for the clock as well as the libraries for interpreting the Processing code. Is that true? Is that the best organization? Would it not be better to have have a processing.js which is the interpreter/libraries and a bezier_clock.js?

Post reply on HN