PathD - Minimal SVG Path constructor of the d attribute.
This library helps you specify SVG paths with a clean Elm interface. For the complete instruction on what each segment does, consult the MDN docs on SVG: https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths
Example of drawing a custom shape:
import Svg.PathD exposing (Segment(..), d_)
...
Svg.path
[ d_
[ M (-0.5, 0.5)
, Q (0.5, 0.5) (0.5, -0.5)
, L (-0.5, -0.5)
, Z
]
]
[]Complete implementation of the SVG path d attribute.
Converts a Segment to a partial SVG Path string
Type shorthand for 2 floats that make up a coordinate.
Replaces
Svg.Attributes.d. This function takes a list of Segments and produces a SVG d attribute with exact specifications.