index.js
// Draw the single rectangle if buffer is 1
Draw the single rectangle if buffer is 1
Draw the single rectangle if buffer is 1
function drawRectangle(value, pos_i, pos_j) {
    let xPos= framePadding + squareWidth*pos_j + ( squareMargin * pos_j );
    let yPos= framePadding + squareWidth*pos_i + ( squareMargin * pos_i );
    if (value == 1)
    {
        let svgRectangle = `\n\t\t<rect x="${xPos}" y="${yPos}" width="${squareWidth}" height="${squareWidth}" stroke="black" fill="none" stroke-width="1"/>`;
        return svgRectangle;
    }
    else {
        return "";
    }
}
function drawRectangle ( value , pos_i , pos_j ) { let xPos = framePadding + squareWidth * pos_j + ( squareMargin * pos_j ) ; let yPos = framePadding + squareWidth * pos_i + ( squareMargin * pos_i ) ; if ( value == 1 ) { let svgRectangle = ` \n \t \t ${ xPos } ${ yPos } ${ squareWidth } ${ squareWidth } ` ; return svgRectangle ; } else { return "" ; } }
Draw the single rectangle if buffer is 1
Draw the single rectangle if buffer is 1
//  console.log(value);