lucid-svg-0.7.0.0: DSL for SVG using lucid for HTML

Lucid.Svg.Path

Description

Utility functions to help create SVG path attributes, and transforms.

Synopsis

Documentation

toText :: RealFloat a => a -> Text Source #

Convert a number to Text.

mA :: RealFloat a => a -> a -> Text Source #

moveto (absolute)

mR :: RealFloat a => a -> a -> Text Source #

moveto (relative)

lA :: RealFloat a => a -> a -> Text Source #

lineto (absolute)

lR :: RealFloat a => a -> a -> Text Source #

lineto (relative)

hA :: RealFloat a => a -> Text Source #

horizontal lineto (absolute)

hR :: RealFloat a => a -> Text Source #

horizontal lineto (relative)

vA :: RealFloat a => a -> Text Source #

vertical lineto (absolute)

vR :: RealFloat a => a -> Text Source #

vertical lineto (relative)

cA :: RealFloat a => a -> a -> a -> a -> a -> a -> Text Source #

Cubic Bezier curve (absolute)

cR :: RealFloat a => a -> a -> a -> a -> a -> a -> Text Source #

Cubic Bezier curve (relative)

sA :: RealFloat a => a -> a -> a -> a -> Text Source #

Smooth Cubic Bezier curve (absolute)

sR :: RealFloat a => a -> a -> a -> a -> Text Source #

Smooth Cubic Bezier curve (relative)

qA :: RealFloat a => a -> a -> a -> a -> Text Source #

qR :: RealFloat a => a -> a -> a -> a -> Text Source #

tA :: RealFloat a => a -> a -> Text Source #

tR :: RealFloat a => a -> a -> Text Source #

aA :: RealFloat a => a -> a -> a -> a -> a -> a -> a -> Text Source #

Arc (absolute)

aR :: RealFloat a => a -> a -> a -> a -> a -> a -> a -> Text Source #

Arc (relative)

closepath

translate :: RealFloat a => a -> a -> Text Source #

SVG Transform components | Specifies a translation by x and y

scale :: RealFloat a => a -> a -> Text Source #

Specifies a scale operation by x and y

rotate :: RealFloat a => a -> Text Source #

Specifies a rotation by rotate-angle degrees

rotateAround :: RealFloat a => a -> a -> a -> Text Source #

Specifies a rotation by rotate-angle degrees about the given time rx,ry

skewX :: RealFloat a => a -> Text Source #

Skew tansformation along x-axis

skewY :: RealFloat a => a -> Text Source #

Skew tansformation along y-axis

matrix :: RealFloat a => a -> a -> a -> a -> a -> a -> Text Source #

Specifies a transform in the form of a transformation matrix