Scale() | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Scale()

I don't understand about this in actual that what is the use of this function. Is it same as rotate()?

22nd Apr 2019, 1:28 PM
Aman deep
Aman deep - avatar
3 Answers
+ 5
rotate spins or turns the element scale makes the element bigger or smaller
22nd Apr 2019, 1:41 PM
Janningā­
Janningā­ - avatar
+ 3
You can see on the third slide and play around with it in Try It Yourself: https://www.sololearn.com/learn/HTML/2203/?ref=app If you're not used to thinking in Cartesian graphs / coordinate systems, maybe it would be helpful to think about the Y direction as a person on their tip-toes reaching for the sky trying to be tall and take up as much vertical space as possible while the X could be a person trying to prevent someone from walking around them and take up as much horizontal space as possible. These parameters are in alphabetical order. scale(x, y) I hope this helps.
23rd Apr 2019, 12:55 AM
Janningā­
Janningā­ - avatar
+ 2
And what about the values that pass as arguments in ( ) braces
22nd Apr 2019, 2:49 PM
Aman deep
Aman deep - avatar