Skip to main content

Fill

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