A CodePen by Bermon Painter. Functions