Use Buffer instead of Uint8Array (lint fix)

Also suppress lint warning about unused alpha in color4ubToID since
that's intentional (for now).
This commit is contained in:
Christopher Willis-Ford 2016-06-02 15:41:50 -07:00
parent bdf65d4284
commit 4d04ef5de7
2 changed files with 3 additions and 2 deletions

View file

@ -485,6 +485,7 @@ Drawable.color4fFromID = function(id) {
* @param {int} a The alpha value of the color, in the range [0,255].
* @returns {int} The ID represented by that color.
*/
// eslint-disable-next-line no-unused-vars
Drawable.color4ubToID = function(r, g, b, a) {
var id;
id = (r & 255) << 0;