How to create a rotated rect in h2d.Graphics?

Hi I’m looking at the the drawRect in h2d.Graphics. Looking at this example here:

// Create a custom graphics object by passing a 2d scene reference.
var customGraphics = new h2d.Graphics(s2d);

//specify a color we want to draw with
customGraphics.beginFill(0xEA8220);

//Draw a rectangle at 10,10 that is 300 pixels wide and 200 pixels tall
customGraphics.drawRect(10, 10, 300, 200);

//End our fill
customGraphics.endFill();

However I don’t see a way to rotate the rectangle. Is there a way to draw a rotated rectangle?

Hm, that’s true. All you can do is customGraphics.rotate(...) or customGraphics.rotation = ... (methods come from the underlying h2d.Object class).
So you would create a new h2d.Graphics object for each rectangle to be able to rotate it.
Alternatively maybe I guess you can also use customGraphics.addVertex if you want to have full control over what is drawn, but it is quite a bit of work then so the first approach would be the easier route.