HTML5 Canvas Wrapper
Monkey Forums/Monkey Code/HTML5 Canvas Wrapper
| ||
| PURPOSE: Provide extended HTML5 canvas functionality, including canvas text, 'stroke', lines, shadows, pixel manipulation, textured polygons etc. To use, save the following files into a project folder: canvasmods.js canvaswrapper.monkey mojostate.monkey |
| ||
| Text examples: text.monkey textwithmojo.monkey |
| ||
| ImageData example: imagedata.monkey |
| ||
| Textured Polygon example: texpoly.monkey |
| ||
| More examples? Let me know what you'd like... |
| ||
| Just tried this -- good stuff, especially the poly and imageData access. Thanks! |
| ||
| 22-NOV-2011 Fixed a little bug in canvasmods.js |
| ||
| More examples? How do I do a fill gradient on a poly? Great Work. |
| ||
| Linear and Radial Gradients Example gradients.monkey |
| ||
| ^Awesome, works great. Thanks. Off to do a demo. :p |
| ||
| Waw, I didn't know you could do that, this is clever ! |