Thing is, by using a cross-platform drawing library like Cairo or OpenGL, a lot of this code could have been reused anyway.
It wouldn't have been as nice or expressive as Javascript though. But it also wouldn't have required hacks like stitching together a giant string to be `eval`', for example. So there's a tradeoff.