Clipping gives strange results when the clip mask is an image and the units are not pixels. In the code snippet, if "px" is changed to, say, "mm" the clipping gives a very strange result.
background(1) fill(0.5, 0.5, 0.5, 1.0) with clip(image('circle.pdf', 20, 20)): rect(0,0,200, 200) # Rectangle covering entire canvas``` <img width="5873" height="3211" alt="Image" src="https://github.com/user-attachments/assets/690be3bb-befe-4256-9378-3030f50a3fc9" /> [circle.pdf](https://github.com/user-attachments/files/21583838/circle.pdf)
In addition, I've just found out that even with px units, the clipping result appears to be a low-resolution bitmap instead of a vector image.
Activity
amtravco commented on Aug 4, 2025
In addition, I've just found out that even with px units, the clipping result appears to be a low-resolution bitmap instead of a vector image.