How to use Circle predefine SVG shape in XML
Posted in XML | SVG July 04, 2019
In this article I have describe about a circle in XML
Read about SVG here
Read about SVG shape here
Circle predefine SVG shape in XML
<circle> is use to create a circle and we show inside in any shapes in XML.
For example: Rectangle, Ellipse, Polygon etc.
<?xml version="1.0" encoding="utf-8" ?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<circle cx="100" cy="50" r="40" fill="red" />
Define the code
- Xml define the namespace and version use the program.
- The cx and cy defines the x and y coordinates center of the circle .The circle's center is set to (0, 0).
- The r attribute defines the radius of the circle and the color is red.
You may also want to read these related articles :
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here