play-co / webgl-2d

Canvas2D API in WebGL
http://weare.buildingsky.net
MIT License
518 stars 117 forks source link

Support canvas.createPattern() #30

Open robwalch opened 11 years ago

robwalch commented 11 years ago

webgl-2d contexts should support createPattern(). A context's fillStyle can be set to a pattern instance to fill draw calls.

Example: https://developer.mozilla.org/samples/canvas-tutorial/4_11_canvas_createpattern.html

Docs: https://developer.mozilla.org/en-US/docs/Web/API/CanvasPattern https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D#createPattern()