Hi, I think this is a rather simple question but somehow I am unable to figure this out…
So, I have some svg images where all of them have the same scales. I want to place them on some absolute coordinates with varying scales.
I know that it is possible to do this by playing with @layer
, the code will be more or less looks like:
# imgs, coords, scales, are the data vectors
Drawing(some_w, some_h, "test.svg")
for (i,img) in enumerate(imgs)
origin()
translate(coords[i])
@layer begin
scale(scales[i])
placeimage(img, O)
end
end
I guess my question is, is there any simpler way of doing this without changing the global scaling and then resetting it (then repeat)? Maybe something like placeimage(img, coor; scale=scale)
? Thanks.