[Translate the circle element in the SVG tutorial]svg

Source: Internet
Author: User

The elements in SVG <circle> are used to draw circles, for example

<svg xmlns= "Http://www.w3.org/2000/svg"    xmlns:xlink= "Http://www.w3.org/1999/xlink" >    <circle cx= "Cy=" "r=" "style=" Stroke: #006600; Fill: #00cc00 "/></svg>

The effect is as follows

Property Description Cx,cy Set Center, R set Radius

Rounded border

You can set the border of a circle by setting the style

For example

<circle cx= "cy=", "r=", "    style=" Stroke: #006600;           Stroke-width:3;           Fill: #00cc00 "/>
Property describes             the color of the stroke border
        Stroke-width       width of border
        Fill               Fill Color
The effect is as follows
stroke-dasharray  
For example
<circle cx= "cy=", "r=", "    style=" Stroke: #006600;           Stroke-width:3;           Stroke-dasharray:10 5;           Fill: #00cc00 "/>
You can also disable borders such as
<circle cx= "" "Cy=" "" "r="           style= "Stroke:none" Fill: #00cc00 "/>
Effect
Round fill

The Fill property in the style is used to set how the circle fills, and if you don't want the circle to be filled, set fill to None

For example, this is a no-fill effect

<circle cx= "cy=", "r=", "    style=" Stroke: #00600;           Fill:none "/>

This is an example of a fill color

<circle cx= "cy=", "r=", "    style=" Stroke: #660066;           Fill: #00ff00 "/>

You can also fill-opacity set the transparency by

For example two pieces of circle overlap together

<circle cx= "cy=", "r=", "    style=" Stroke: #660000;           Fill: #cc0000 "/><circle cx=" "cy=" "r=" "    style=" Stroke: #000066;           Fill: #0000cc "           fill-opacity:0.5/>

[Translate the circle element in the SVG tutorial]svg

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.