Polygon with negative co-ordinates and positive draw offset is clipped
Have I made an incorrect assumption that negative co-ordinates should work?
local edge = playdate.geometry.polygon.new(-100,0,0,100,10,100,110,0)
playdate.graphics.drawPolygon(edge)
Result:
local edge = playdate.geometry.polygon.new(-100,0,0,100,10,100,110,0)
playdate.display.setOffset(100, 120)
playdate.graphics.drawPolygon(edge)
Result:
This is unexpected, as I would expect the polygon to draw in full.
Expected:
- generated with different code