Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Image Layer Test

Tests the rendering order of images vs primitives (paths, backgrounds). This helps debug z-order issues where images may render above/below other elements.

Solution for rendering elements ON TOP of images: Use .foreground() on any element that needs to render above images. The render order is: Background primitives → Images → Foreground primitives

Tip: Some demos are best viewed in a full browser window. Click “Open in a new tab” below for the full experience.

Open in a new tab · View source on GitHub