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 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 #

Quadratic Bezier curve (absolute)

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

Quadratic Bezier curve (relative)

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

Smooth Quadratic Bezier curve (absolute)

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

Smooth Quadratic Bezier curve (relative)

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)

z :: Text Source #

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