corrected border drawing with multiple colors

initial code for border-radius implemented
This commit is contained in:
Niklas von Hertzen
2012-06-26 15:15:46 +03:00
parent 311a67ee22
commit cce6e3537c
4 changed files with 123 additions and 14 deletions

View File

@@ -18,6 +18,44 @@ function h2cRenderContext(width, height) {
'arguments': arguments
});
},
drawShape: function() {
var shape = [];
storage.push({
type: "function",
name: "drawShape",
'arguments': shape
});
return {
moveTo: function() {
shape.push({
name: "moveTo",
'arguments': arguments
});
},
lineTo: function() {
shape.push({
name: "lineTo",
'arguments': arguments
});
},
bezierCurveTo: function() {
shape.push({
name: "bezierCurveTo",
'arguments': arguments
});
},
quadraticCurveTo: function() {
shape.push({
name: "quadraticCurveTo",
'arguments': arguments
});
}
};
},
drawImage: function () {
storage.push({
type: "function",