background clipping support

This commit is contained in:
Niklas von Hertzen
2013-01-03 20:34:47 +02:00
parent 56780565f4
commit 65b4bdf282
4 changed files with 174 additions and 50 deletions

View File

@@ -4,6 +4,34 @@ function h2cRenderContext(width, height) {
storage: storage,
width: width,
height: height,
clip: function() {
storage.push({
type: "function",
name: "clip",
'arguments': arguments
});
},
fill: function() {
storage.push({
type: "function",
name: "fill",
'arguments': arguments
});
},
save: function() {
storage.push({
type: "function",
name: "save",
'arguments': arguments
});
},
restore: function() {
storage.push({
type: "function",
name: "restore",
'arguments': arguments
});
},
fillRect: function () {
storage.push({
type: "function",