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
Should draw a rectangle, or at least give an error explaining that you can't draw in color on a grayscale image
What actually happened?
The error message:
TypeError: function takes exactly 1 argument (3 given)
This error message is confusing since the rect function isn't being given 3 arguments; the arguments to rect match the documentation.
I ran into this problem and put an explanation on stackoverflow. This has received dozens of upvotes, so a lot of other people are hitting this problem. (This is why I think it's worth filing an issue on this.)
What did you do?
Draw a color rectangle on a grayscale image.
What did you expect to happen?
Should draw a rectangle, or at least give an error explaining that you can't draw in color on a grayscale image
What actually happened?
The error message:
TypeError: function takes exactly 1 argument (3 given)
This error message is confusing since the
rect
function isn't being given 3 arguments; the arguments torect
match the documentation.I ran into this problem and put an explanation on stackoverflow. This has received dozens of upvotes, so a lot of other people are hitting this problem. (This is why I think it's worth filing an issue on this.)
What are your OS, Python and Pillow versions?
Code to reproduce the problem:
The text was updated successfully, but these errors were encountered: