UNPKG

pixelbutler

Version:

Low-res bitmap render engine for big screens

16 lines (15 loc) 402 B
'use strict'; var RGBA = (function () { function RGBA(r, g, b, a) { if (typeof r === "undefined") { r = 0; } if (typeof g === "undefined") { g = 0; } if (typeof b === "undefined") { b = 0; } if (typeof a === "undefined") { a = 255; } this.r = r; this.g = g; this.b = b; this.a = a; } return RGBA; })(); module.exports = RGBA;