Man using binoculars between books

Capturing Impressions

What is an impression? This is a term that is used typically when talking about advertising and the idea is that we want to know if something has been viewed. We can't know for sure that something was actually viewed, but we can make an educated guess. So the criteria we will use is that 50% of the pixels of…
Open Book

React Refs and How They Work

The React framework conveniently abstracts away a lot of the manual DOM manipulation, so you normally don't need access to the raw DOM elements. But every so often you do. Maybe you need to find the position of a DOM element for instance. For this purpose, React has added a feature to reference DOM elements aptly named Refs. So to…
Seattle Skyline

Phaser and Webpack and TypeScript, Oh My! – Part 3

In this last part of my 3-part post, we'll be talking about converting our project to TypeScript. If you are just joining, but sure to check out the previous posts. First of all, why would we want to use TypeScript? Well, as the name would suggest, it makes use of types for Javaacript. Normally we try not to worry about…
Artists paint pots and brushes

Colorized SVGs

On to the topic of theming again! I talked about setting theme colors in my post Automatic Theme Colors, but what happens when we also need to change the color of our icons? One solution is to use an icon font. The advantage is that it allows you to change the color simply by changing the font color, but there…