Files
rough/examples/sample-svg-path.html
Preet Shihn b560efbe84 samples
2018-03-01 22:32:47 -08:00

21 lines
582 B
HTML

<html>
<head>
<title>RoughJS savg path example</title>
<script src="../dist/rough.min.js"></script>
</head>
<body>
<canvas id="canvas"></canvas>
<script>
(() => {
const rough = new RoughCanvas(document.getElementById('canvas'), 800, 800);
var path = rough.path("M213.1,6.7c-32.4-14.4-73.7,0-88.1,30.6C110.6,4.9,67.5-9.5,36.9,6.7C2.8,22.9-13.4,62.4,13.5,110.9 C33.3,145.1,67.5,170.3,125,217c59.3-46.7,93.5-71.9,111.5-106.1C263.4,64.2,247.2,22.9,213.1,6.7z");
path.fill = "#424242";
path.hachureAngle = 80;
})();
</script>
</body>
</html>