Pi.js v2.2.0 adds host-controlled canvas layout, WebGL context recovery, and the polygons plugin in the full build, while tightening image loading, sampler alignment, and transparent composition. This release removes the deprecated loadImage() palette options, so applications using usePalette or paletteKeys will need small code changes before upgrading.
Read morePi.js v2.1 Upgrade
Pi.js v2.1.0 adds custom fragment and display shaders, nested drawing views, and shared-context offscreen screens while preserving compatibility with v2.0. It also improves GPU resource validation and cleanup, fixes same-context offscreen image orientation, and makes image removal safer.
Read moreGuessing Game Tutorial
Learn the basics of Pi.js by building a simple “Guessing Game.” This quick tutorial walks through screen setup, user input, async logic, and adding sound.
Read morePi.js v2.0 Upgrade
Pi.js v2 delivers a major modernization with a complete architectural refactor, WebGL2-only rendering for GPU-accelerated performance, and a powerful new plugin system. This guide covers all the new features, improvements, and minimal breaking changes, ensuring a smooth transition to a faster, more extensible Pi.js.
Read more