Fill
🎠Mask options and parameters of fill
method
Fill method fills the whole Mask with a designated value. It works like this:
let mask = new Mask(4, 4);
mask.fill(1);
// now mask is filled with 1s
Parameters and default values​
value
🎠Mask options and parameters of fill
method
Fill method fills the whole Mask with a designated value. It works like this:
let mask = new Mask(4, 4);
mask.fill(1);
// now mask is filled with 1s
value