# Using variables to resize a shape that has been rotated.

Can resizing using variables (as explained in https://www.khanacademy.org/computing/computer-programming/programming/resizing-with-variables/pt/resizing-shapes-with-variable-expressions) be used for a shape that has been rotated?

I am trying to use variables to resize both ellipses below including the rotated one but it actually moves as it is getting resized

//ellipse (200,200,100,200);

//rotate (-29);

//ellipse (150,200,60,50);

var eSize = 100;

var x = 200;

var y = 200;

ellipse (x,y,eSize,2*eSize);

rotate (-29);

ellipse (x-50*100/eSize,y*100/eSize,3/5*eSize,1/2*eSize);

Any ideas on how this can be solved if possible?

Please sign in to leave a comment.