Changed set_pixel and set_matrix to underscores
This commit is contained in:
parent
74234f32a1
commit
e78fa020dd
|
@ -130,7 +130,7 @@ class Pixelimg {
|
||||||
/*
|
/*
|
||||||
Set pixel at X, Y to COLOR
|
Set pixel at X, Y to COLOR
|
||||||
*/
|
*/
|
||||||
setPixel(OPTIONS){
|
set_pixel(OPTIONS){
|
||||||
// CHECK AND GET INPUTS //
|
// CHECK AND GET INPUTS //
|
||||||
//x
|
//x
|
||||||
if(OPTIONS.x === parseInt(OPTIONS.x, 10) && OPTIONS.x > -1 && OPTIONS.x < this.matrix_width){
|
if(OPTIONS.x === parseInt(OPTIONS.x, 10) && OPTIONS.x > -1 && OPTIONS.x < this.matrix_width){
|
||||||
|
@ -171,7 +171,7 @@ class Pixelimg {
|
||||||
/*
|
/*
|
||||||
Update whole matrix from 2d-array
|
Update whole matrix from 2d-array
|
||||||
*/
|
*/
|
||||||
setMatrix(MATRIX){
|
set_matrix(MATRIX){
|
||||||
// SET NEW MATRIX //
|
// SET NEW MATRIX //
|
||||||
this.matrix = MATRIX;
|
this.matrix = MATRIX;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue