# Resize canvas from windowResize() distorts proportions of 3D objects

**URL:** <https://discourse.processing.org/t/resize-canvas-from-windowresize-distorts-proportions-of-3d-objects/5492>\
**Category:** Coding Questions\
**Created:** [November 13, 2018, 12:08pm UTC](https://discourse.processing.org/t/resize-canvas-from-windowresize-distorts-proportions-of-3d-objects/5492 "2018-11-13T12:08:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FedFod](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/fedfod/32/2312_2.png) [@FedFod](https://discourse.processing.org/u/FedFod)\
**Post date:** [November 13, 2018, 12:08pm UTC](https://discourse.processing.org/t/resize-canvas-from-windowresize-distorts-proportions-of-3d-objects/5492/1 "2018-11-13T12:08:38Z")

</div>

Hi everybody,  
so when I resize the canvas in this way:

m4.windowResized = function() {  
m4.resizeCanvas(m4.windowWidth, m4.windowHeight);  
// sphereVertices = pointsOnSphere(etiquetasLength);  
}

the 3D objects on my world get distorted according to the canvas proportions.  
This doesn’t happen when I first load the sketch. Is this standard behavior? How can I avoid that?  
Thank you for any help
