[open] Inline script error: TypeError: rect() got an unexpected keyword argument 'penwidth'
According to the documentation, this is the way to do it, but it doesn't work.
Code:
my_canvas.rect(posx, posy, 64, 64, penwidth=2)
According to the documentation, this is the way to do it, but it doesn't work.
Code:
my_canvas.rect(posx, posy, 64, 64, penwidth=2)
Comments
Hi Dirk,
In principle, this is the correct way to draw a rectangle, but your question (or rather statement) is not specific enough to tell what's wrong. Could you provide some more details? What kind of error message do you get? What exactly do you want to do?
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!