Drawing Shapes With Javascript

How do I draw shapes using the shape painter in javascript?

I’d like to be able to draw a custom shape using the fill path features, but can’t get access to those events in a javascript program.

I can’t figure out for the life of me if this is possible, or if I’d have to figure out a workaround using events.

Thank you in advance for anyone that knows how to do this or who can figure it out!

How familiar are you with using JavaScript with Gdevelop?

For the shape painter

Some Gdevelop JavaScript basics
https://wiki.gdevelop.io/gdevelop5/events/js-code/