Sprites are display objects that render a texture. They take a single texture as a parameter. Like all display objects they need to be added to our stage in order to render. let sprite =…
Author: cjgammon
PixiJS Texture Loading
PixiJS stores all its textures inside a texture cache which can be accessed in PIXI.utils.TextureCache. To load textures into the cache you need to use a loader. This can be done by creating a new…
PixiJS Renderer, Ticker & Stage
In the last post I showed you how to get up and running quickly in PixiJS. In this episode I want spend some time diving a bit deeper into the basics of PixiJS. To do…
PixiJS Getting Started
To download the latest version of PixiJS you can check the releases tab of the github repository here. Because of browser security restrictions loading local assets directly will result in CORS errors. We’ll need to…
PixiJS Introduction
PixiJS is a 2D Graphics Rendering framework for the web. It was created by Matt Groves to normalize the canvas and webgl APIs into a simple scene graph originally modeled loosely on the Flash API. Its primary…
Fixed Canvas Backgrounds
I’ve talked a bit about separating our semantic and non-semantic content within websites. We can take our rich non-semantic content and throw it onto a canvas. This provides a number of benefits, cleaning up our…
New Site
Recently I redesigned my website (cjgammon.com). Personal sites are kind of a constant background project for me and a great way to keep exploring and learning. I like to keep it clean with some animation…
Parallax Deep Dive
Welcome to the first part of my deep dive into parallax. In this part we’re going to talk about what parallax is, how it relates to the web, and whether it’s just a fad. You’ve…
Basic Parallax
In the second installment of my Parallax deep dive, I go into how to implement basic parallax on the web. I also discuss some other things to consider when implementing parallax. We cover the formula…
Advanced Parallax
In the third installment of my Parallax deep dive, I go into how to implement more advanced parallax on elements that are further down the page. We explore some more advanced calculations to get specific…