Sep
29

Adam van den Hoven wrote a Canvas Loading Indicator after he realised that animated gifs and the iPhone didn’t mesh. First he wrote the basic spinner: PLAIN TEXT JAVASCRIPT: function getLoading(context, bars, center, innerRadius, size, color) {var animating = true,    currentOffset = 0; function makeRGBA(){    return “rgba(” + [].slice.call(arguments, 0).join(”,”) + “)”;}function drawBlock(ctx, barNo){    ctx.fillStyle = makeRGBA(color.red, […]

More: continued here

No Comments Make A Comment

No comments yet.

Comments RSS Feed   TrackBack URL

Leave a comment

You must be logged in to post a comment.