InternetUnicodeHTMLCSS SVG ElementsDocument Structment<style> Draft for Information Only
ContentScalable Vector Graphics (SVG)
Scalable Vector Graphics (SVG)Scalable Vector Graphics (SVG) is a XML-based markup language for describing two-dimensional graphics.<path> TagThe <path> tag is used to create a shape through describing the path elements of a shape.Example of a Simple Self-Contained SVG DocumentSVG Code Input:
HTML Web Page Embedded Output: ExampleExample of a Simple Self-Contained SVG Document:d PropertyThe d Property is used to specify the shape of a <path> element.
'd' to specify the shape of a <path> element. Name:d
Value:none | <string>
Initial:none
Applies to:‘path’
Inherited:no
Percentages:N/A
Media:visual
Computed value:as specified
Animatable:yes d ValueThe values of path command defined for d are MoveTo:M, m LineTo:L, l, H, h, V, v Cubic Bézier Curve:C, c, S, s Quadratic Bézier Curve:Q, q, T, t Elliptical Arc Curve:A, a ClosePath:Z, zMoveTo CommandThe moveto command is used to move to a new initial point as the new current point without creating any shape. CommandParametersDescription M(x y)+to move to the given corrdinates, (x, y) m(x y)+to move to a relative coordinates (x0+x, y0+y) by shifting according to the given corrdinates, (x, y), as offset.LineTo CommandThe lineto command is used to create a straight line from the current point to the specified end point. CommandParametersDescription L(x y)+to create a straight line from the current point (x0, y0) to the given corrdinates, (x, y) l(x y)+to create a straight line from the current point (x0,y0) to a relative coordinates (x0+x, y0+y) by shifting according to the given corrdinates, (x, y), as offset. Hx+to create a straight line horizontally from the current point (x0, y0) to the given corrdinate, x, that is to a new coordinates (x, y0) hx+to create a straight line horizontally from the current point (x0, y0) to a new coordinates (x0+x, y0) by shifting according to the given corrdinate, x, as offset. Vy+to create a straight line vertically from the current point (x0, y0) to the given corrdinate, y, that is to a new coordinates (x0, y) vy+to create a straight line vertically from the current point (x0, y0) to a new coordinates (x0, y0+y) by shifting according to the given corrdinate, y, as offset.Cubic Bezier Curve CommandThe standard cubic Bezier curve Command is used to create a cubic Bezier curve by specifying four points including the current point. The four points are first point, first control point, second control point, and the second point. CommandParametersDescription C(x1 y1 x2 y2 x y)+to create a cubic Bezier curve from the current point, (x0, y0), to the specified final point, (x, y), with the specified first control point, (x1, y1) at the beginning, and the specified second control point, (x2, y2), at the end. c(x1 y1 x2 y2 x y)+to create a cubic Bezier curve from the current point, (x0, y0), to a relative final point, (x0+x, y0+y) by shifting according to the given corrdinates, (x, y), as offset, with a relative first control point, (x0+x1, y0+y1), at the beginning, by shifting according to the given corrdinate, (x1, y1), as offset, and a relative second control point, (x0+x2, y0+y2), at the end, by shifting according to the given corrdinate, (x2, y2), as offset. The shorthand or smooth curveto command is used to create a smooth cubic Bezier curve by specifying three points including the current point. The three points are first point, second control point, and the second point. The first control point is assumed to be the reflection of the second control point on the previous cubic Bezier curve Command relative to the current point. If there is no previous command or if the previous command was not a cubic Bezier curve Command, the first control point is assumed to be coincident with the current point. CommandParametersDescription S(x2 y2 x y)+to create a smooth cubic Bezier curve from the current point, (x0, y0), to the specified final point, (x, y), with the specified second control point, (x2, y2), at the end. s(x2 y2 x y)+to create a smooth cubic Bezier curve from the current point, (x0, y0), to a relative final point, (x0+x, y0+y) by shifting according to the given corrdinates, (x, y), as offset, with a relative second control point, (x0+x2, y0+y2), at the end, by shifting according to the given corrdinate, (x2, y2), as offset.Quadratic Bezier Curve CommandThe standard quadratic Bezier curve Command is used to create a quadratic Bezier curve by specifying three points including the current point. The three points are first point, control point, and the second point. CommandParametersDescription Q(x1 y1 x y)+to create a quadratic Bezier curve from the current point, (x0, y0), to the specified final point, (x, y), with the specified control point, (x1, y1). q(x1 y1 x y)+to create a quadratic Bezier curve from the current point, (x0, y0), to a relative final point, (x0+x, y0+y) by shifting according to the given corrdinates, (x, y), as offset, with a relative control point, (x0+x1, y0+y1), by shifting according to the given corrdinate, (x1, y1), as offset. The shorthand or smooth quadratic Bezier curveto command is used to create a smooth quadratic Bezier curve by specifying two points including the current point. The two points are first point, and the second point. The control point is assumed to be the reflection of the second control point on the previous quadratic Bezier curve Command relative to the current point. If there is no previous command or if the previous command was not a quadratic Bezier curve Command, the control point is assumed to be coincident with the current point. CommandParametersDescription T(x y)+to create a smooth quadratic Bezier curve from the current point, (x0, y0), to the final specified point, (x, y). t(x y)+to create a smooth quadratic Bezier curve from the current point, (x0, y0), to a relative final point, (x0+x, y0+y) by shifting according to the given corrdinates, (x, y), as offset.Elliptical Arc Curve CommandThe elliptical arc curve command is used to create an elliptical arc from current point to a given point by specifying the two radii, x-axis-rotation, large-arc-flag, and sweep-flag. The x-axis-rotation is the angle of the elliptical arc curve rotated, in degrees and in clockwise direction. While the large-arc-flag and sweep-flag are used to define which possible arc paths are to be created. A large or longer arc is created with large-arc-flag equals to '1' or a small arc is created with large-arc-flag equals to '0'. An arc is created along a clockwise path with sweep-flag equals to '1' or along a counter-clockwise path with sweep-flag equals to '0'. CommandParametersDescription A(rx ry x-axis-rotation large-arc-flag sweep-flag x y)+to create an elliptical arc from current point, (x0, y0), to the specified final point, (x, y), with the specified parameters, radii, (rx, ry), x-axis-rotation, large-arc-flag, and sweep-flag. a(rx ry x-axis-rotation large-arc-flag sweep-flag x y)+to create an elliptical arc from current point, (x0, y0), to a relative final point, (x0+x, y0+y) by shifting according to the given corrdinates, (x, y), as offset, with the specified parameters, radii, (rx, ry), x-axis-rotation, large-arc-flag, and sweep-flag.ClosePath CommandThe closepath command is used to end the current subpath by joining it back to its initial point through creating a straight line from the current position to the first point in the path. CommandParametersDescription Z, z to end the current subpath by joining it back to its initial point through automatically creating a connecting straight line from the current position to the first point in the path.Sources and References
©sideway ID: 210800031 Last Updated: 8/31/2021 Revision: 0 Ref: References
Latest Updated Links
|
Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 339 Travel 7 Reference 79 Computer Hardware 251 Software Application 213 Digitization 32 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 289 Unicode 504 HTML 66 CSS 65 SVG 46 ASP.NET 270 OS 431 DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 206 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2024 Sideway . All rights reserved Disclaimers last modified on 06 September 2019