Presto rectangle with curved corners

Per the docs:

rectangle(x, y, w, h, corners=(r1, r2, r3, r4), stroke=0)

But when I try this:

display.rectangle(30, 0, 420, 420, ((20, 20, 20, 10)), 1)

I get this error:
function takes 5 positional arguments but 7 were given

When I try this:

display.rectangle(30, 0, 420, 420, corners=((20, 20, 20, 10)), stroke=1)

I get this error:
function doesn’t take keyword arguments

What am I doing wrong?

Ah, I see. I’ve confused picographics and picovector. Same function names, different attributes. Working now.

What happens if you try?
display.rectangle(30, 0, 420, 420, (20, 20, 20, 10), 1)

I don’t own a Presto, just so you know.