It’s a little tricky, hopefully this helps.
function onUpdate(dc as Dc) as Void { var polyRegion = [ [40, 40], [100, 40], [40, 100], [100, 100] ]; dc.fillPolygon(polyRegion); }