Thread
#compose
    r

    romainguy

    2 years ago
    Using
    Canvas.scale()
    Jorge Castillo

    Jorge Castillo

    2 years ago
    My canvas is taking the whole screen, actually. But the vector original size is quite smaller so the path renders as the original size on the top left corner. What I'd want to aim for is to make the path adapt to the canvas size, so it takes as much space as possible within the canvas. If I scaled the canvas to be bigger that might scale up the vector, but would break the screen layout composition.
    I'm animating a path on the canvas (i.e rendering a bigger amount of path nodes per tick to achieve a silhouette animation) so I wanted to stay on the canvas level, like, not wrapping into Image or similar .
    r

    romainguy

    2 years ago
    Scale the canvas while you draw the path and remove the scale
    Jorge Castillo

    Jorge Castillo

    2 years ago
    Got it 👍 I'll try!
    Worked great 🥳
    thanks!