Negative w/h in rect()

Origin at the bottom left is unfamiliar to me, so I wanted to draw a rect from the top-down, like this:

rect(12, 12, 174, -174)

Have a look what it does.

What about a ‘home made’ function like

function rectFromTop(x,y,w,h)
    pushStyle()
    rectMode(CORNER)
    rect(x,y-h,w,h)
    popStyle()
end

@spyromus It must be iPad specific. I tried your code on an iPad Air and nothing showed. I stumbled on this code. It’s supposed to show a circle without anything inside it (noFill). The size is 92,000,000 and I wasn’t expecting this.


displayMode(FULLSCREEN)

function setup()
end

function draw()
    background(40, 40, 50)
    noFill()
    stroke(255)
    strokeWidth(2)
    ellipse(WIDTH/2,HEIGHT/2,92000000)
end

Did you guys notice the date of my original post?