You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@andraantariksa Do you have an idea how the API for this could look like?
Due to the way pixels are stored, a mutating (changing the canvas it is called on) version of this is hard to implement.
The existing function Canvas.paste(canvas, x, y) can be used to insert a smaller canvas into a larger one.
A Canvas.cut(x, y, width, height) : Canvas function would be a nice addition, as a more flexible way to shrink a canvas.
I think it would be a good idea to have a resizeable canvas (to shrink and to grow the canvas size)
The text was updated successfully, but these errors were encountered: