nick34992
2/25/2017 - 2:23 AM

D3: svg, canvas, path, style: SVG Triangle with Outline

D3: svg, canvas, path, style: SVG Triangle with Outline

<!DOCTYPE html>
<html>
<head>
    <meta name="description" content="D3: svg, path, canvas, style">
</head>
<body>
    <script src="d3/d3.js" charset="utf-8"></script>
    <svg width="400" height="400">
        <path d="M 10 10 L 380 10 L 190 380 Z"
              style="fill:mediumblue;stroke:darkred;stroke-width:10" />
    </svg>
</body>
</html>