Drawing in iOS - Part 14: Transforms | Ray Wenderlich Videos

Learn how to move your canvas before painting into it by using transforms.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4659-drawing-in-ios/lessons/14

Not really able to understand or visualise how exactly the negative value in scale transform work, i.e., this code - context?.scaleBy(x: 1, y: -1) . Can anyone please help in understanding this well?

@rohansanap

IMG_0027

That’s an original unit square scaled by (1, 0.5) and also scaled by (1, -1).
Does that help?

@caroline Oh! Got it! Understood it now. Scale by (1, 0.5) really helped to put this thing into perspective. Thanks a lot.