- 50lessons
- 4guided projects
- 8module checkpoints
- 2.2hours of video
What you'll learn
- Draw, transform and read back 2D canvas content at stated coordinates
- Load and slice image assets safely with fallbacks
- Run frame-rate independent animation loops that can be tested with a fake clock
- Handle pointer and keyboard input with accessible text alternatives
- Measure render cost with counts and timings, and release every resource on teardown
Skills you'll gain
- Canvas drawing model
- Coordinates
- transforms
- Images
- assets
- Animation loop
- Pixi scene graph
- Interaction
- Performance
- disposal
- Graphics project
Tools you'll use
- Canvas 2D
- PixiJS v8
- Local dev server
- Browser DevTools
Details to know
- Certificate on completionIssued after your final project is reviewed
- 8 module checkpointsA quiz and a practical task close each module
- Self-pacedStudy any time; your progress is saved
How every lesson works
Each lesson follows the same four steps, so you always know what comes next.
- 01
Watch & Learn
A short animated video explains one idea at a time.
- 02
Guided Practice
Work through an example step by step and check the result.
- 03
Quiz & Challenge
Short questions check the idea has landed before you move on.
- 04
Mini Project
Build something useful from a project brief.
Learn at your own pace
This is a self-paced course. There are no live classes and no fixed timetable.
- Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
- Pick up where you left offYour progress is saved to your account.
- Ask when you're stuckUse Ask Mentor inside the learning platform.
Your path in 4 phases
Each phase ends with something you have built and checked.
- 01
Modules 1 to 2
Canvas drawing model to Coordinates and transforms
Draw and read back 2D shapes on a canvas bitmap using the context, paths, styles and the state stack. Map between screen and canvas space and compose translate, rotate and scale predictably.
You build: Guided project “Pixel-tested shape sheet”: A page that draws shapes with readback helper tests; Transformed shapes with a mapped-pointer test.
- 02
Modules 3 to 6
Images and assets to Interaction
Load, slice, cache and fall back from image assets in a canvas drawing. Drive motion with requestAnimationFrame, delta time, fixed steps and respect for user preferences.
You build: Guided project “Pixi interactive board”: Pixi v8 scene of containers, sprites and text; Pointer and keyboard operation with DOM text mirror.
- 03
Module 7
Performance and disposal
Measure rendering cost, reduce it, and release every resource the graphics tool acquires.
You build: Guided project “Measured and cleaned-up renderer”: Count report and teardown test.
- 04
Module 8
Graphics project
Assemble the interactive graphics tool: model, renderers, input, measurement and cleanup.
You build: Final project build and trainer-reviewed demonstration (see project).
Full curriculum
8 modules and 50 lessons, 29 to 50 hours of study
01Canvas drawing model7 lessons, 3 to 5 hours
Lessons
- Bitmap size versus CSS size on a canvas element
- Paths with moveTo, lineTo and fill
- Stroke width and half-pixel alignment
- Rectangles and arcs: immediate calls versus path calls
- Style state and the save/restore stack
- Pixel readback with getImageData and clearRect
- Compositing and clipping: destination-out and clip
After this module you can
- Set a canvas width and height attribute, differ it from its CSS size, and predict where a drawn pixel lands.
- Build a closed polygon with beginPath, moveTo, lineTo and closePath, then fill it and verify interior and exterior pixels.
- Predict the pixel result of source-over versus destination-out and restrict drawing with clip.
02Coordinates and transforms6 lessons, 3 to 4 hours
Lessons
- The y-down coordinate system and client-to-canvas mapping
- translate and the order of operations
- rotate about a pivot point
- scale, flips and line-width distortion
- setTransform, resetTransform and devicePixelRatio
- Composing matrices and hit-testing transformed shapes
After this module you can
- Convert a pointer's clientX/clientY into canvas bitmap coordinates using getBoundingClientRect and the CSS-to-bitmap ratio.
- Predict where a shape lands after translate followed by a draw call and why translating after drawing has no effect.
- Use getTransform and an inverse matrix to test whether a point lies inside a rotated, scaled rectangle.
03Images and assets6 lessons, 3 to 4 hours
Lessons
- Loading an image before drawImage
- drawImage source rectangles and destination scaling
- Sprite sheets and frame tables
- Smoothing and pixel-art scaling
- Preloading assets and handling load failure
- Offscreen canvases and cached static layers
After this module you can
- Draw an image only after it has loaded and explain why drawing in the same tick as setting src can paint nothing.
- Use the nine-argument drawImage to crop part of an image and scale it into a destination box.
- Pre-render a static background to an offscreen canvas and blit it each frame, then count draw calls saved.
04Animation loop6 lessons, 3 to 4 hours
Lessons
- The requestAnimationFrame clear-and-redraw cycle
- Delta time and frame-rate independent motion
- Fixed timestep with an accumulator
- Easing and interpolation of properties
- Pause, resume, visibility and cancelAnimationFrame
- Reduced motion and a static fallback render
After this module you can
- Build a loop that clears the canvas, draws the current state and schedules the next frame.
- Move an object by speed times elapsed seconds and verify identical distance at 30 and 60 frames per second using a fake clock.
- Detect prefers-reduced-motion and render a single static frame instead of an animation, with a user control.
05Pixi scene graph6 lessons, 3 to 4 hours
Lessons
- Creating a PixiJS v8 Application with async init
- Containers and parent-child transforms
- Graphics in v8: shape first, then fill and stroke
- Textures, Assets and Sprites
- Text, child order and zIndex
- The Pixi ticker and deltaTime
After this module you can
- Create an Application, await app.init with options, append app.canvas and explain why v8 construction is two steps.
- Group display objects in a Container and predict a child's world position from parent position, scale and rotation.
- Add a ticker callback and use ticker.deltaTime or deltaMS for frame-rate independent movement, then remove it.
06Interaction6 lessons, 3 to 4 hours
Lessons
- Pointer events and manual hit-testing on a canvas
- Dragging a canvas shape with offset and pointer capture
- Pixi eventMode and pointer events on display objects
- Dragging a Pixi sprite with stage-level pointermove
- Keyboard operability and focus indication
- Accessibility fallbacks: names, text alternatives and a DOM mirror
After this module you can
- Register pointerdown on a canvas and decide which shape was hit using stored geometry and coordinate mapping.
- Drag a shape without it jumping to the cursor, using the grab offset and setPointerCapture.
- Give a canvas a role, name and a DOM text mirror of its live data so assistive technology can read it.
07Performance and disposal7 lessons, 3 to 5 hours
Lessons
- Frame budgets and measuring render cost with performance.now
- Counting draw operations with a context spy
- Avoiding full redraws: dirty rectangles and layers
- Pixi batching and fewer objects
- Reusing objects: pools instead of allocation per frame
- Disposal: destroy, listeners, tickers and textures
- Resize, context loss and application teardown
After this module you can
- Time a render function across N frames, report mean and worst frame cost and compare to the 16.7 ms budget at 60 fps.
- Wrap a CanvasRenderingContext2D in a counting proxy and assert how many fillRect, stroke and drawImage calls a frame makes.
- Handle container resize with ResizeObserver, react to context loss events, and fully destroy the Application.
08Graphics project6 lessons, 3 to 4 hours
Lessons
- Project specification and a render-independent data model
- Canvas renderer with pixel-level tests
- Pixi renderer with parity checks
- Integrating controls, drag and keyboard operation
- Measurement report and performance budget
- Cleanup proof, fallbacks and demonstration packaging
After this module you can
- Write the tool's spec and a plain-data model that both renderers consume with no drawing calls inside it.
- Render the model on a 2D canvas and write pixel assertions for each shape kind at stated coordinates.
- Show teardown leaves zero listeners, tickers and canvases, provide a reduced-motion fallback and package the setup instructions.
What you'll build
4 guided projects along the way, then a final project.
Pixel-tested shape sheet
after module 2Animated sprite strip
after module 4Pixi interactive board
after module 6Measured and cleaned-up renderer
after module 7
Final project
Interactive Canvas/PixiJS graphics tool with measured rendering and cleanup. Choose one option: Floor-plan editor; Data-driven chart studio; Sticker board.
What you submit
Source and artifact submission with pinned toolchain and README setup instructions. Functional pixel and count checks per renderer with parity table. Error handling for missing assets and resize. Persistence of the model to localStorage with restart evidence.
How it's reviewed
Trainer review against the rubric: Correctness of checks (30%); Renderer parity and model separation (20%); Accessibility and fallbacks (20%); Measured performance and honesty of report (15%); Cleanup and setup instructions (15%).
Where you'll use it
- Build a drag-and-drop editor, such as a floor plan, that draws many shapes smoothly.
- Measure frame cost and release textures so a long-running graphics page does not slow down.
Roles that use these skills
- Front-end developer
- Graphics programmer
- Creative developer
Earn the certificate by building, not watching
- Complete the lessons and pass each module checkpoint.
- Build your final project and demonstrate it.
- OUTLEARN reviews your project and issues your certificate. It is not issued automatically.
Frequently asked questions
What do I need before I start?
Prerequisite courses: JavaScript DOM & Browser APIs. Comfort with JavaScript functions, arrays, objects, modules and promises, the DOM and events, and running a local dev server (course the earlier course or equivalent). Diagnostic: write a function that returns the sum of an array of numbers and attach a click listener that updates text; no graphics knowledge assumed.
Do I get a certificate?
We do not issue certificates until you successfully build and demonstrate your live project. Module and final assessments are planned; the module pass rule is proposed, not final. Certificates are issued by OUTLEARN staff; nothing is issued automatically.
Where do the labs run?
Canvas 2D follows the living MDN/WHATWG docs. PixiJS: the v8 line (async app.init, app.canvas, shape-then-fill Graphics, ticker callbacks receiving the Ticker). Exact v8.x patch selection pending; confirm destroy options and any renderer diagnostics against the selected version's docs before authoring code.
Be first in when Browser Graphics with Canvas & PixiJS opens
Email us and we will tell you as soon as enrolment opens.
Notify me when it opens
