Yep. That's clearing and resetting the entire canvas. Setting the width and height attribute changes the internal dimensions of the canvas. And it's faster to set it directly.   // This does the same thing... $("canvas").attr({ width: page.w, height: page.h }); // as this... canvas.width = page.w; canvas.height = page.h;     One thing that is confusing about canvas is understanding width and height. Changing the internal size is different than setting the size with CSS. Ch
    • Like
    3