mirror of
https://github.com/scratchfoundation/scratch-render.git
synced 2025-08-07 11:59:14 -04:00
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:
parent
bdf65d4284
commit
4d04ef5de7
2 changed files with 3 additions and 2 deletions
src
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue