Well in this case more like “Huh I guess I should finish that damned thing up” 😛
When I watched the recent keynote there was one bit that made me think exactly that. It was the point where geoff was showing off drawing from a XojoScript.
I’d tinkered with something on and off for a while – and its been more off lately than on.
But when I saw that I thought “Gee. I really should finish demo that up.”
So I did. And here you are. A way to draw from XojoScript to a graphics that resides in Xojo code. In the demo it comes from the paint event of a canvas.
Doesn’t currently support any additional clipping of the graphics but I’ll see what I can do.
There’s no support for Pictures since pictures do not exist in XojoScript. That might also be possible to do without too much effort but I dont have any need for it at the moment.
The ONE thing to remember with XojoScript is it is all very CLASSIC API 1.0
So extension methods like String.Mid, String.len etc dont exist (I could add those too but …)
Have fun with it. Let me know what you think.
UPDATE : Clipping has been added !