Closed djnugent closed 4 years ago
Ah. This is likely because it is an uninitialized clip
object. I misunderstood the purpose of clip. Not a lot of documentation on what clip actually does other than "it clips". Will need to do more digging
Yep that was it. Pasting solution for anyone who gets stuck on this.
clip = canvas.clip(path.rect(0, 0,10,10)) # clip takes in a path
can = canvas.canvas([clip])
In such a case, it may be useful to take a look at the example section: https://pyx-project.org/examples/drawing2/clipping.html . I admit that each time I use clipping, which is not very often, I have to look up its usage and that is the place I usually turn to.
When I run
I get this error
Pyx version 0.15 Python 3.6