You can draw textures dynamically with HTML Canvas API.
UniCanvas has instruction sets very similar to Canvas API that implemented with Cairo graphics library. You can also use Cairo API instead of Canvas API.
Supported OS:
Windows, Mac, Linux
License notice:
Cairo graphics library is licensed under LGPL.