(function(grPaint) { "use strict"; // Module systems magic dance. if (typeof require === "function" && typeof exports === "object" && typeof module === "object") { // NodeJS module.exports = grPaint; } else if (typeof define === "function" && define.amd) { // AMD define(function () { return grPaint; }); } else { // Other environment (usually