mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
SVG: Add parallelogram to example.
We should really have a test-case in place...
This commit is contained in:
parent
751dfe52ea
commit
0129080a08
1 changed files with 7 additions and 0 deletions
|
@ -62,6 +62,13 @@
|
|||
}
|
||||
}
|
||||
};
|
||||
|
||||
var parallelogram = new Path({
|
||||
closed: true,
|
||||
segments: [[50, 0], [50, 100], [90, 120], [90, 20]],
|
||||
fillColor: '#99c'
|
||||
});
|
||||
|
||||
document.getElementById('svg').appendChild(project.exportSVG());
|
||||
</script>
|
||||
</head>
|
||||
|
|
Loading…
Reference in a new issue