Skip to content

Commit 0835b0e

Browse files
authored
Merge pull request rough-stuff#10 from pshihn/dev
.
2 parents a012a3c + ae906bb commit 0835b0e

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

docs/images/main/m7.png

19.9 KB
Loading

examples/2.0/test4.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,15 @@
1515
(async () => {
1616
const rc = rough.canvas(document.getElementById('canvas'));
1717

18-
rc.rectangle(15, 15, 80, 80, { roughness: 0.5, fill: 'red' });
19-
rc.rectangle(120, 15, 80, 80, { roughness: 2.8, fill: 'blue' });
20-
rc.rectangle(220, 15, 80, 80, { bowing: 6, stroke: 'green', strokeWidth: 3 });
18+
await rc.arc(350, 300, 200, 180, Math.PI, Math.PI * 1.6, true);
19+
await rc.arc(350, 300, 200, 180, 0, Math.PI / 2, true, {
20+
stroke: 'red', strokeWidth: 4,
21+
fill: 'rgba(255,255,0,0.4)', fillStyle: 'solid'
22+
});
23+
await rc.arc(350, 300, 200, 180, Math.PI / 2, Math.PI, true, {
24+
stroke: 'blue', strokeWidth: 2,
25+
fill: 'rgba(255,0,255,0.4)'
26+
});
2127
})();
2228
</script>
2329
</body>

0 commit comments

Comments
 (0)