Hello everyone ! Hope you’re having a happy weekend
I am trying to make a border for this sketch area, the default size is 16*16, it’s working well :
Will the solution start from changing height or width of the main grid ?
Hello everyone ! Hope you’re having a happy weekend
I am trying to make a border for this sketch area, the default size is 16*16, it’s working well :
Will the solution start from changing height or width of the main grid ?
The problem is that you’re not clearing your grid first, before creating a new one, so you’d have to add one line to the top of your generateGrid function:
function generateGrid(pixles) {
container.innerHTML = '';
...
}