Shonzilla, a pattern-seeking animal

Life is a game of patterns and chance, and those who play well will win.


Twitter

See also (via Entrecard)

programming coupons powered by RetailMeNot.com

Wed Jan 23

Advanced 2D graphics for web using Java

Here’s something for web developers out there.

If you wonder sometime why Flash is being used so much, you’re going to like this.

I guess you may have heard for GWT (Google Web Toolkit) allowing you to write AJAX application in Java. GWT allows web developers can save their valuable/expensive time by not messing with infinite intricacies of writing cross-browser DHTML pages. Instead, they can use Java programming language in design time, use their favorite IDE in debug time while seeing the visual aspect effects rendered in an applet. When all coding and debugging work is done you can have the Java application compiled it into cross-browser JavaScript and CSS (using its own Java-to-JavaScript compiler). Intriguied? Go try it out!

The main point of this article is the WVGL (Web Vector Graphics Library) that builds on top of GWT to produce pretty advanced results - 2D graphics in web browser. WVGL library offers the graphics primitives and support for the following features:

  • Affine Transformations (used frequently in graphics)
  • Component Mouse Listeners
  • Paths
  • Strokes
  • Fills
  • Groups

Click here to check out how it draws a Bezier curve in web browser esentially using Java programming language!

Cool, isn’t it?

Kudos to Nathan Matthews, the author of WVGL! Thanks to Miloš Malić for the link.