My Blog List

Saturday, November 9, 2019

Programming for printing rainbow in html using svg

This is the programs for creating a rainbow shape using svg element in html5.


<html>
<head>
<title>Smile</title>
</head>
<body>
<svg  height="140" ">
<circle id = "circle" cx = "150" cy="150" r="150" fill = "violet" />

<circle id = "circle" cx = "150" cy="150" r="130" fill = "orange" />

<circle id = "circle" cx = "150" cy="150" r="110" fill = "yellow" />

<circle id = "circle" cx = "150" cy="150" r="90" fill = "blue" />

<circle id = "circle" cx = "150" cy="150" r="70" fill = "green" />

<circle id = "circle" cx = "150" cy="150" r="50" fill = "white" />

<circle id = "circle" cx = "150" cy="150" r="30" fill = "red" />


</svg>
</body>
</html>

1 comment:

Multiple Inheritance in C++.

     In this tutorial Multiple Inheritance in c++. On the basis of Inheritance concept the another type of inheritance is the Multiple I...