Hasty Briefsbeta

Bilingual

Beej's Bit Bucket

a day ago
  • HTML5 canvas is for fire-and-forget drawing, better for pixel manipulation and memory-intensive tasks than SVG.
  • SVG is declarative, good for tracking individual shapes and animations, and is a W3C Recommendation.
  • Canvas uses JavaScript and a drawing context; supports transformations like translate, rotate, scale.
  • The transformation matrix is cumulative; setTransform resets to identity matrix.
  • Canvas is widely supported except in Internet Explorer, though it is not yet a full recommendation.
  • The blog discusses Flash vs HTML5, but focuses on canvas capabilities.