<!doctype html> <html> <head> <meta charset="UTF-8"> <title>Mobile-Web-App: Raphaël</title> <script src="http://raphaeljs.com/raphael.js"></script> <script> var paper_w = 500; var paper_h = 300; window.onload = function () { var paper = Raphael("RaphaelPaper", paper_w, paper_h); paper.rect(0, 0, paper_w, paper_h, 20).attr({fill: "#333"}); }; </script> </head> <body> <h1>Mobile-Web-App: Raphaël</h1> <div id="RaphaelPaper"/> </body> </html>Raphaël is a small JavaScript library that should simplify your work with vector graphics on the web.
Saturday, March 24, 2012
Simple example of Raphaël JavaScript library
Labels:
Raphaël
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment