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

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

Lucid.Svg.Path

Description

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

Synopsis

Documentation

toText :: Show a => a -> Text Source

Convert a showable object to Text.

mA :: Show a => a -> a -> Text Source

moveto (absolute)

mR :: Show a => a -> a -> Text Source

moveto (relative)

lA :: Show a => a -> a -> Text Source

lineto (absolute)

lR :: Show a => a -> a -> Text Source

lineto (relative)

hA :: Show a => a -> Text Source

horizontal lineto (absolute)

hR :: Show a => a -> Text Source

horizontal lineto (relative)

vA :: Show a => a -> Text Source

vertical lineto (absolute)

vR :: Show a => a -> Text Source

vertical lineto (relative)

cA :: Show a => a -> a -> a -> a -> a -> a -> Text Source

Cubic Bezier curve (absolute)

cR :: Show a => a -> a -> a -> a -> a -> a -> Text Source

Cubic Bezier curve (relative)

sA :: Show a => a -> a -> a -> a -> Text Source

Smooth Cubic Bezier curve (absolute)

sR :: Show a => a -> a -> a -> a -> Text Source

Smooth Cubic Bezier curve (relative)

qA :: Show a => a -> a -> a -> a -> Text Source

Quadratic Bezier curve (absolute)

qR :: Show a => a -> a -> a -> a -> Text Source

Quadratic Bezier curve (relative)

tA :: Show a => a -> a -> Text Source

Smooth Quadratic Bezier curve (absolute)

tR :: Show a => a -> a -> Text Source

Smooth Quadratic Bezier curve (relative)

aA :: Show a => a -> a -> a -> a -> a -> a -> a -> Text Source

Arc (absolute)

aR :: Show a => a -> a -> a -> a -> a -> a -> a -> Text Source

Arc (relative)

z :: Text Source

closepath

translate :: Show a => a -> a -> Text Source

SVG Transform components | Specifies a translation by x and y

scale :: Show a => a -> a -> Text Source

Specifies a scale operation by x and y

rotate :: Show a => a -> Text Source

Specifies a rotation by rotate-angle degrees

rotateAround :: Show a => a -> a -> a -> Text Source

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

skewX :: Show a => a -> Text Source

Skew tansformation along x-axis

skewY :: Show a => a -> Text Source

Skew tansformation along y-axis

matrix :: Show a => a -> a -> a -> a -> a -> a -> Text Source

Specifies a transform in the form of a transformation matrix