[Extension] Magic Pencil

I think this one is fully on me, as even going back 2 years, to a much older version of the documentation, a call to image:drawImage(other_image, x, y) was never valid.

It must’ve been some undocumented overload of the method that I accidentally used, I’m surprised it worked for so long anyway. :man_shrugging:

It was thought to work in that way, several methods that receive a point (or rectangle) can receive the Point (or Rectangle) parameter or a sequence of arguments like x,y (or x,y,width,height). I think it’s not so hard to break this backward compatibility (just checking if the second argument is a Point or an integer, we can process both calls).

1 Like