Add `in_place` flag to all Shape operations
In frame-per-frame operations involving shapes, it could happen that users want to alter a shape from the original state at every iteration. The current workflow involves making a manual copy of the shape and then do the transformation on it, but it's inefficient (and there is no `copy` method either, so to copy users do `Shape(other_shape.drawing_cmds)`).
Adding a `in_place` flag to all shapes' operations will elegantly resolve that, and make it similar to other libraries (e.g. `pandas`).
0 条评论