bolson: (Default)
[personal profile] bolson
Tinkering around with my clock projects, I've done an accidental survey of some tools for doing dynamic graphics in web pages.

This is a Java Applet using java.awt.* graphics:
http://bolson.org/clock/a2.html

This is javascript dom hacking pushing around HTML elements with CSS positioning (and a static png background):
http://bolson.org/clock/js.html

This is a <canvas> element with javascript graphics:
http://bolson.org/clock/epiclock.html

They're all updating at 10 to 30 Hz. I've found that the Java Applet/AWT looks great on my Mac but horrible on Linux, even if scaled back to 1 Hz. The two javascript clocks look fine on Mac, Linux, and iPhone. The Internet tells me that <canvas> isn't supported on IE, but it looks fine on Firefox/Chrome/Safari.

Alternatives not explored are XHTML + SVG + javascript, causing an inline SVG document to change and animate. Also Flash/ActionScript and Microsoft Silverlight and some new environment from Adobe are out there but not the kinds of things I'm likely to use for political reasons.

I still think Java is a great language, but it looks like Sun's promise of write-once-run-anywhere GUIs went out with the 1990's.

Also, I'm planning to watch one or more of these roll over this New Year's Eve. ;-)
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

bolson: (Default)
bolson

September 2017

S M T W T F S
     12
3456789
1011121314 1516
17181920212223
24252627282930

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 22nd, 2025 04:50 pm
Powered by Dreamwidth Studios