Files
rough/visual-tests/canvas/arc2.html
Preet a76982849d fix for solid arc fill when arc angle is > 180 (#190)
* .

* fix for solid arc fill when arc angle is > 180
2021-11-02 23:01:43 -07:00

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>