In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
Editor to share with you how to use SVG to draw circles, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
The SVG element is the basic shape of a SVG, which is used to create a circle based on a center and a radius. At the same time, you can use the stroke and fill attributes to stroke the circle with solid lines, dotted lines, and color fills the circle.
Draw a circle
1. SVG Namespace
# xmlns= "http://www.w3.org/2000/svg" # xmlns:xlink=" http://www.w3.org/1999/xlink"
This is the XML namespace defined in the XML linking language [(XLink) specification. For information about XML, see Extensible markup language (XML) 1.0 specification.
2. The SVG element is used to draw circles.
Project
Running result:
The circle is centered on points cx and cy and has a radius of r. Cx,cy and r are attributes of the element.
Circular Stroke
Use the SVG stroke style property to set the stroke (outline) of the SVG circle.
The stroke is set to # 006600 dark green. However, you can set not only the stroke color, but also more. You can also set the stroke width using the stroke-widthstyle property.
Example
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.