center the canvas code example
Example: locate canvas in center of screen css
canvas{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
canvas{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}