Pixel set redundancy removed (#1188)

* Pixels.set Redundancy removed

* eslint fixes

* move require to top with const
This commit is contained in:
aashna27
2019-08-15 01:04:14 +05:30
committed by Jeffrey Warren
parent 1b5607a339
commit 5b98d5cf44
16 changed files with 93 additions and 117 deletions

5
src/util/pixelSetter.js Normal file
View File

@@ -0,0 +1,5 @@
module.exports = function(x, y, value, pixels){
for(let i = 0; i < value.length; i++){
pixels.set(x, y, i, value[i]);
}
};