svg-builder-0.1.0.2: DSL for building SVG.

Copyright(c) 2015 Jeffrey Rosenbluth
LicenseBSD-style (see LICENSE)
Maintainerjeffrey.rosenbluth@gmail.com
Safe HaskellSafe
LanguageHaskell2010

Graphics.Svg.Path

Description

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

Synopsis

Documentation

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

Convert a number to Text.

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

moveto (absolute)

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

moveto (relative)

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

lineto (absolute)

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

lineto (relative)

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

horizontal lineto (absolute)

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

horizontal lineto (relative)

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

vertical lineto (absolute)

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

vertical lineto (relative)

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

Cubic Bezier curve (absolute)

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

Cubic Bezier curve (relative)

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

Smooth Cubic Bezier curve (absolute)

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

Smooth Cubic Bezier curve (relative)

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

Quadratic Bezier curve (absolute)

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

Quadratic Bezier curve (relative)

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

Smooth Quadratic Bezier curve (absolute)

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

Smooth Quadratic Bezier curve (relative)

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

Arc (absolute)

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

Arc (relative)

z :: Text #

closepath

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

SVG Transform components | Specifies a translation by x and y

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

Specifies a scale operation by x and y

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

Specifies a rotation by rotate-angle degrees

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

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

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

Skew tansformation along x-axis

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

Skew tansformation along y-axis

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

Specifies a transform in the form of a transformation matrix