mirror of
https://github.com/rough-stuff/rough.git
synced 2026-01-14 17:07:58 -05:00
29 lines
650 B
HTML
29 lines
650 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
|
|
<title>RoughJS Arc</title>
|
|
</head>
|
|
|
|
<body>
|
|
<canvas width="800" height="800"></canvas>
|
|
|
|
<script type="module">
|
|
import rough from '../../bin/rough.js';
|
|
const canvas = document.querySelector('canvas');
|
|
const rc = rough.canvas(canvas);
|
|
|
|
rc.arc(350, 300, 200, 180, 0, Math.PI * 1.6, true, {
|
|
stroke: "#1a1f26",
|
|
strokeWidth: 1,
|
|
roughness: 1,
|
|
fill: 'rgba(186, 186, 188, 0.5)',
|
|
fillStyle: "solid"
|
|
});
|
|
|
|
</script>
|
|
</body>
|
|
|
|
</html> |