2(D) : . Develop the Different Advanced Graphical Shapes using HTM5 SVG

 Data Visualization 

( 3160717 )

Practical and Source Codes



<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>Create a Circle with HTML5 SVG</title>
    <style>
        svg {
            border: 1px solid black;
        }
    </style>
</head>

<body>
    <svg width="400" height="400" style="border:1px solid #ccc">
        <polygon points="200,0 0,100 50,115" style="fill:orange;stroke:yellow;strokewidth:1; "></polygon>
        <polygon points="200,0 50,115 150,135" style="fill:blue;stroke:yellow;strokewidth:1;opacity:0.5 "></polygon>
        <polygon points="200,0 150,135 245,135" style="fill:black;stroke:yellow;stroke-width:1;opacity:0.5 "></polygon>
        <polygon points="200,0 245,135 350,128" style="fill:green;stroke:yellow;stroke-width:1;opacity:0.5 "></polygon>
        <polygon points="200,0 350,128 400,110" style="fill:red;stroke:yellow;strokewidth:1;opacity:0.5 "></polygon>
        <line x1="200" y1="0" x2="200" y2="300" style="fill:red;stroke:black;strokewidth:5;"></line>
        <path d="M 200 300 q 7 90 -90 0" stroke="black" stroke-width="5" fill="none" />
    </svg>
</body>

</html>





Go Back

No comments:

Get new posts by email:


Group+1.2