The 2D script looks pretty simple, I think a rectangular fill (using A and B parameters) should do it. You could add a new parameter for the fill type (instead of hard coding the fill), as well as foreground and background pens for additional controls.
David
David Maudlin / Architect www.davidmaudlin.com Digital Architecture AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14