Does the translation only going to affect the text after the translation is done .what about the before ones | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Does the translation only going to affect the text after the translation is done .what about the before ones

The translate(x,y) method is used to move the Canvas. x indicates how far to move the grid horizontally, and y indicates how far to move the grid vertically.

7th Oct 2018, 11:01 AM
adarsh pandey
adarsh pandey - avatar
1 Answer
0
More precisely, the translate(x,y) method doesn't move the canvas but only move its axes origin... meaning that all what drawn before are not affected by such transform ^^ If you want to move (scroll) a already drawed canvas, you need to clear it before and redraw (you should have kept the previous operations to be able to do so)...
26th Mar 2020, 4:43 PM
visph
visph - avatar