Advanced Secret module! This is for people who want to access the underlying types in the library so you can do advanced things. Most people don't need this much detail! I recommend you look at the source of this module to determine how to use these.
A filled, outlined, or filled and outlined object that can be drawn to the screen using collage.
PtrType(..) does not have any docs. The module's documentation names it in an @docs line, but the package does not expose it.The Color type is used for filling or outlining a Stencil.
A type representing radial and linear gradients.
A type representing stops in a gradient. Consists of one constructor with inputs for the position, transparency and colour.
A matrix representing an SVG transformation matrix of the form:
( ( a , c , e ) , ( b , d , f ) )or
a c e
b d fThe a, c, b and d control transformations such as skew, rotate and scale; e and f control translation.
These matrices are best built up by starting with the identity matrix and
applying any number of *T functions (see below); for example,
myTransform =
ident
|> scaleT 2 2
|> rotateT (degrees 30)
|> moveT (0, 50)The LineType type is used to define the appearance of an outline for a Stencil.
LineType also defines the appearence of line and curve.
A simple algebraic data type with three constructors:
The Face type describes the appearance of a text Stencil.
The Font type describes the font of a text Stencil.
To make it easier to read the code defining a curve,
and to make sure we always use the right number of curve points
and pull points (which is one more curve point than pull points),
we define a special Pull type, whose first point is the point
we pull towards, and second point is the end point for this
curve segments.
A primitive template representing the shape you wish to draw. This must be turned into a
Shapebefore being drawn to the screen withcollage(see below).