· HTML5 Canvas Sample
· HTML5 Canvas Animation
You’ll need a HTML5-enabled browser - these are web apps, so you won't need anything else. Most other samples work in all browsers.
If you want to develop web apps like these with F#, WebSharper Standard is now available as a free download, as recently announced by Adam Granicz.
Now that WebSharper has been released and matured, it will be great to see it used more widely by F# users. Given the importance of both HTML5 and Silverlight, F# users interested in shipping visualization apps should really make sure they know how to use F# to program these, using the Silverlight SDK (for Silverlight) or tools such as WebSharper (for HTML5).
Here's a snippet for the animated clock:
let AnimatedCanvas draw width height caption =
let canvas = new Canvas.Canvas(width, height)
let ctx = canvas.Context
let rec loop =
do! Async.Sleep 1000
do draw ctx