Implement Pixi.js example 12b