Skip to content

Course

Web Graphics: SVG, Canvas & WebGL

A practitioner's guide to programmatic browser graphics — manipulating SVG, building fast canvas renderers, understanding WebGL, animating correctly, and choosing the right technology.

9 lessons

Course Q&A

Reviews

Enrolled members can rate this course.

No reviews yet.

SVG and Rendering Foundations

Understand the DOM-retained SVG model, coordinate systems, accessibility, and the immediate-mode bitmap contract behind canvas.

  1. 01SVG Is a DOM: Manipulate Structure, Not PixelsLearn the retained-mode mental model for SVG, when direct DOM edits beat redraws, and how namespaces, transforms, and event delegation really work.24mOpen
  2. 02SVG Viewports, Coordinates, and Accessible GraphicsMaster viewBox scaling, preserveAspectRatio, responsive sizing, pointer coordinate conversion, and the semantic details that make SVG usable.22mOpen
  3. 03Canvas Is Immediate Mode: Pixels, State, and RedrawsBuild the correct mental model for canvas as a stateful bitmap API, including backing scale, paths, transforms, compositing, and the absence of scene memory.25mOpen

Canvas Performance and Interaction

Batch drawing, manage device pixels, implement hit testing, and drive deterministic animation without burning the main thread.

  1. 01Canvas Performance: Batch Work and Respect the RasterizerDiagnose real canvas bottlenecks, cap backing-store cost, batch state changes, layer expensive content, manage images, and measure before optimizing.28mOpen
  2. 02Hit Testing and Interaction on an Objectless BitmapImplement reliable picking with coordinate transforms, spatial indexes, color buffers, DOM overlays, and pointer-state machines that survive real input.26mOpen
  3. 03Animation Timing: requestAnimationFrame, Delta Time, and DeterminismDesign animation loops that stay smooth under variable frame rates, separate simulation from rendering, respect reduced motion, and avoid time-based glitches.25mOpen

WebGL and Technology Decisions

Reason about buffers, shaders, GPU cost, animation architecture, and when SVG, canvas, WebGL, or WebGPU is the correct tool.

  1. 01WebGL Fundamentals: The GPU Pipeline Without the FogUnderstand contexts, buffers, shaders, draw calls, uniforms, attributes, and why WebGL code looks verbose compared with canvas.30mOpen
  2. 02Buffers, Shaders, and Visual Effects in PracticeMove from the first triangle to practical instancing, texture handling, blending, framebuffer effects, and GPU debugging.28mOpen
  3. 03Choosing SVG, Canvas, WebGL, or the DOMMake pragmatic rendering decisions using object lifetime, interaction, accessibility, motion, text, asset type, team cost, and failure modes.27mOpen