vecto

API Reference

vecto

Create vector graphics in PNG files.

VECTO

  • Variable *DEFAULT-CHARACTER-SPACING*
    1.0d0
  • Function STRING-BOUNDING-BOX (string size loader &key (character-spacing 1.0d0))
  • Function STRING-PATHS (x y string)
  • Function CENTERED-STRING-PATHS (x y string)
  • Function MOVE-TO (x y)
  • Function LINE-TO (x y)
  • Function CURVE-TO (cx1 cy1 cx2 cy2 x y)
  • Function QUADRATIC-TO (cx cy x y)
  • Function ARC (cx cy r theta1 theta2)
  • Function ARCN (cx cy r theta1 theta2)
  • Function ELLIPSE-ARC (cx cy rx ry theta eta1 eta2)
  • Function ELLIPSE-ARCN (cx cy rx ry theta eta1 eta2)
  • Function CLOSE-SUBPATH
  • Function END-PATH-NO-OP
  • Function CLIP-PATH
  • Function EVEN-ODD-CLIP-PATH
  • Function GET-FONT (file)
  • Function SET-FONT (font size)
  • Function SET-CHARACTER-SPACING (spacing)
  • Function DRAW-STRING (x y string)
  • Function DRAW-CENTERED-STRING (x y string)
  • Function SET-DASH-PATTERN (vector phase)
  • Function SET-LINE-CAP (style)
  • Function SET-LINE-JOIN (style)
  • Function SET-LINE-WIDTH (width)
  • Function SET-RGB-STROKE (r g b)
  • Function SET-RGBA-STROKE (r g b a)
  • Function SET-RGB-FILL (r g b)
  • Function SET-RGBA-FILL (r g b a)
  • Function STROKE
  • Function STROKE-TO-PATHS
  • Function FILL-PATH
  • Function EVEN-ODD-FILL
  • Function FILL-AND-STROKE
  • Function EVEN-ODD-FILL-AND-STROKE
  • Function CLEAR-CANVAS
  • Function TRANSLATE (x y)
  • Function SCALE (x y)
  • Function SKEW (x y)
  • Function ROTATE (radians)
  • Function ROTATE-DEGREES (degrees)
  • Function SAVE-PNG (file)
  • Function SAVE-PNG-STREAM (stream)
  • Macro WITH-CANVAS ((&key width height) &body body)
  • Macro WITH-GRAPHICS-STATE (&body body)
  • Function LINEAR-DOMAIN (param)
  • Function BILINEAR-DOMAIN (param)
  • Function SET-GRADIENT-FILL (x0 y0 r0 g0 b0 a0 x1 y1 r1 g1 b1 a1 &key (extend-start t) (extend-end t) (domain-function 'linear-domain))
  • Variable +KAPPA+
    (* 4.0d0 (/ (- (sqrt 2.0d0) 1.0d0) 3.0d0))
    From http://www.whizkidtech.redprince.net/bezier/circle/, the top Google hit for my vague recollection of this constant.
  • Function CENTERED-ELLIPSE-PATH (x y rx ry)
    Add an elliptical subpath centered at X,Y with x radius RX and y radius RY.
  • Function CENTERED-CIRCLE-PATH (x y radius)
    Add a circular subpath centered at X,Y with radius RADIUS.
  • Function RECTANGLE (x y width height)
  • Function ROUNDED-RECTANGLE (x y width height rx ry)

vectometry

2d drawing to PNGs with a more object-y interface than Vecto.

VECTO-GEOMETRY

  • Class POINT
    X   Accessor: X
    Y   Accessor: Y
  • Function POINT (x y)
  • Function COORDINATES (point)
  • Function XPOINT (x)
  • Function YPOINT (y)
  • Function APOINT (angle distance)
  • Generic-Function MIDPOINT (a b)
  • Method MIDPOINT (a b)
  • Method MIDPOINT (a b)
  • Method MIDPOINT (a b)
  • Generic-Function EQV (a b)
  • Method EQV (a b)
  • Method EQV (a b)
  • Method EQV (a b)
  • Generic-Function ADD (a b &rest args)
  • Method ADD (a b &rest args)
  • Method ADD (a b &rest args)
  • Method ADD (a b &rest args)
  • Generic-Function SUB (a b)
  • Method SUB ((a point) (b point))
  • Method SUB ((a point) (b point))
  • Method SUB ((a point) (b point))
  • Generic-Function MUL (a b)
  • Method MUL ((a point) (b point))
  • Method MUL ((a point) (b point))
  • Method MUL ((a point) (b point))
  • Generic-Function DIV (a b)
  • Method DIV ((a point) (b point))
  • Method DIV ((a point) (b point))
  • Method DIV ((a point) (b point))
  • Generic-Function NEG (object)
  • Method NEG ((point point))
  • Method NEG ((point point))
  • Method NEG ((point point))
  • Generic-Function DISTANCE (p1 p2)
  • Method DISTANCE ((p1 point) (p2 point))
  • Method DISTANCE ((p1 point) (p2 point))
  • Method DISTANCE ((p1 point) (p2 point))
  • Generic-Function ABS* (object)
  • Method ABS* ((point point))
  • Method ABS* ((point point))
  • Method ABS* ((point point))
  • Generic-Function ANGLE (p1 p2)
  • Method ANGLE ((p1 point) (p2 point))
  • Method ANGLE ((p1 point) (p2 point))
  • Method ANGLE ((p1 point) (p2 point))
  • Generic-Function SCALE (object scalar)
  • Method SCALE ((point point) scalar)
  • Method SCALE ((point point) scalar)
  • Method SCALE ((point point) scalar)
  • Variable *ORIGIN*
    (vecto-geometry:point 0 0)
  • Class BOX
    XMIN   Accessor: XMIN
    YMIN   Accessor: YMIN
    XMAX   Accessor: XMAX
    YMAX   Accessor: YMAX
  • Method XMIN ((point point))
  • Method XMAX ((point point))
  • Method YMIN ((point point))
  • Method YMAX ((point point))
  • Function BOX (xmin ymin xmax ymax)
  • Function POINT-BOX (a b)
    Creates the smallest box that contains the points A and B.
  • Function ORIGIN-BOX (point)
    Creates a bounding box that includes both the origin and POINT.
  • Function BBOX-BOX (bbox)
    Creates a box from the BBOX vector.
  • Generic-Function MINPOINT (box)
  • Method MINPOINT ((box box))
  • Method MINPOINT ((box box))
  • Method MINPOINT ((box box))
  • Generic-Function MAXPOINT (box)
  • Method MAXPOINT ((box box))
  • Method MAXPOINT ((box box))
  • Method MAXPOINT ((box box))
  • Generic-Function CENTERPOINT (box)
  • Method CENTERPOINT ((box box))
  • Method CENTERPOINT ((box box))
  • Method CENTERPOINT ((box box))
  • Generic-Function WIDTH (object)
  • Method WIDTH (object)
  • Method WIDTH (object)
  • Method WIDTH (object)
  • Generic-Function HEIGHT (object)
  • Method HEIGHT (object)
  • Method HEIGHT (object)
  • Method HEIGHT (object)
  • Generic-Function AREA (box)
  • Method AREA ((box box))
  • Method AREA ((box box))
  • Method AREA ((box box))
  • Generic-Function EMPTYP (box)
  • Method EMPTYP ((box box))
  • Method EMPTYP ((box box))
  • Method EMPTYP ((box box))
  • Function CONTRACT (box amount)
  • Function EXPAND (box amount)
  • Method MUL ((point point) (box box))
  • Method MUL ((box box) (point point))
  • Method SUB ((box box) (point point))
  • Method DIV ((box box) (point point))
  • Method EQV ((a box) (b box))
  • Generic-Function DISPLACE (box point)
  • Method DISPLACE ((box box) point)
  • Method DISPLACE ((box box) point)
  • Method DISPLACE ((box box) point)
  • Method SCALE ((box box) (scaler number))
  • Generic-Function BOUNDING-BOX-DELEGATE (object)
    An object that provides the bounding box for some other object.
  • Generic-Function BOUNDING-BOX (object)
  • Method BOUNDING-BOX ((objects sequence))
  • Method BOUNDING-BOX ((objects sequence))
  • Method BOUNDING-BOX ((objects sequence))
  • Method BOUNDING-BOX ((point point))
  • Method BOUNDING-BOX ((point point))
  • Method BOUNDING-BOX ((point point))
  • Method BOUNDING-BOX (object)
  • Method BOUNDING-BOX (object)
  • Method BOUNDING-BOX (object)
  • Function TRANSPOSE (box)
  • Function CONTAINSP (box point)
  • Class TRANSFORM-MATRIX
    X-SCALE   Accessor: X-SCALE
    Y-SKEW   Accessor: Y-SKEW
    X-SKEW   Accessor: X-SKEW
    Y-SCALE   Accessor: Y-SCALE
    X-OFFSET   Accessor: X-OFFSET
    Y-OFFSET   Accessor: Y-OFFSET
  • Function TRANSFORM-MATRIX (a b c d e f)
  • Variable *IDENTITY-MATRIX*
    (make-instance 'vecto-geometry:transform-matrix)
  • Generic-Function TRANSFORM-FUNCTION (transform-matrix)
  • Method TRANSFORM-FUNCTION ((matrix transform-matrix))
  • Method TRANSFORM-FUNCTION ((matrix transform-matrix))
  • Method TRANSFORM-FUNCTION ((matrix transform-matrix))
  • Generic-Function TRANSFORM (point matrix)
  • Method TRANSFORM (point (matrix transform-matrix))
  • Method TRANSFORM (point (matrix transform-matrix))
  • Method TRANSFORM (point (matrix transform-matrix))
  • Method MUL ((m1 transform-matrix) (m2 transform-matrix))
  • Function TRANSLATION-MATRIX (tx ty)
  • Function SCALING-MATRIX (sx sy)
  • Function ROTATION-MATRIX (theta)
  • Function SKEWING-MATRIX (alpha beta)
  • Generic-Function COMBINE (a b)
  • Method COMBINE (a (b null))
  • Method COMBINE (a (b null))
  • Method COMBINE (a (b null))
  • Method COMBINE ((a null) b)
  • Method COMBINE ((a null) b)
  • Method COMBINE ((a null) b)
  • Method COMBINE (a b)
  • Method COMBINE (a b)
  • Method COMBINE (a b)
  • Method BOUNDING-BOX ((glyph glyph))

VECTOMETRY

  • Function MOVE-TO (p)
  • Function LINE-TO (p)
  • Function CURVE-TO (control1 control2 end)
  • Function QUADRATIC-TO (control end)
  • Function DRAW-STRING (p string)
  • Function DRAW-CENTERED-STRING (p string)
  • Function STRING-PATHS (p string)
  • Function STRING-BOUNDING-BOX (string size loader)
  • Function ARC (center radius theta1 theta2)
  • Function ARCN (center radius theta1 theta2)
  • Function RECTANGLE (box)
  • Function ROUNDED-RECTANGLE (box rx ry)
  • Function CENTERED-ELLIPSE-PATH (center rx ry)
  • Function CENTERED-CIRCLE-PATH (center radius)
  • Function TRANSLATE (point)
  • Macro WITH-BOX-CANVAS (box &body body)
  • Generic-Function TOP-LEFT (object)
  • Method TOP-LEFT (object)
  • Method TOP-LEFT (object)
  • Method TOP-LEFT (object)
  • Generic-Function TOP-RIGHT (object)
  • Method TOP-RIGHT (object)
  • Method TOP-RIGHT (object)
  • Method TOP-RIGHT (object)
  • Generic-Function BOTTOM-LEFT (object)
  • Method BOTTOM-LEFT (object)
  • Method BOTTOM-LEFT (object)
  • Method BOTTOM-LEFT (object)
  • Generic-Function BOTTOM-RIGHT (object)
  • Method BOTTOM-RIGHT (object)
  • Method BOTTOM-RIGHT (object)
  • Method BOTTOM-RIGHT (object)
  • Function SET-GRADIENT-FILL (p1 c1 p2 c2 &key (extend-start t) (extend-end t) (domain-function 'linear-domain))
  • Function RGB-COLOR (r g b)
  • Function RGBA-COLOR (r g b a)
  • Function HSV-COLOR (h s v)
  • Generic-Function HSV-VALUES (color)
  • Method HSV-VALUES ((color color))
  • Method HSV-VALUES ((color color))
  • Method HSV-VALUES ((color color))
  • Generic-Function RGB-VALUES (color)
  • Method RGB-VALUES ((color color))
  • Method RGB-VALUES ((color color))
  • Method RGB-VALUES ((color color))
  • Variable *BLACK*
    (vectometry:rgb-color 0 0 0)
  • Variable *WHITE*
    (vectometry:rgb-color 1 1 1)
  • Function ADD-ALPHA (color alpha)
  • Generic-Function HTML-CODE (color)
  • Method HTML-CODE (color)
  • Method HTML-CODE (color)
  • Method HTML-CODE (color)
  • Function SET-FILL-COLOR (color)
  • Function SET-STROKE-COLOR (color)
  • Function HTML-COLOR (code)
  • Function GRAY-COLOR (value)
  • Function GRAYA-COLOR (value alpha)

Also exports

  • VECTO:STROKE-TO-PATHS
  • VECTO:CLEAR-CANVAS
  • VECTO-GEOMETRY:XMAX
  • VECTO-GEOMETRY:YMAX
  • VECTO:SAVE-PNG-STREAM
  • VECTO-GEOMETRY:TRANSFORM
  • VECTO:EVEN-ODD-FILL
  • VECTO-GEOMETRY:SCALING-MATRIX
  • VECTO-GEOMETRY:BBOX-BOX
  • VECTO:CLOSE-SUBPATH
  • VECTO:WITH-CANVAS
  • VECTO-GEOMETRY:MUL
  • VECTO-GEOMETRY:X
  • VECTO-GEOMETRY:AREA
  • VECTO:SET-RGB-STROKE
  • VECTO-GEOMETRY:TRANSFORM-MATRIX
  • VECTO-GEOMETRY:YPOINT
  • VECTO-GEOMETRY:CONTAINSP
  • VECTO:END-PATH-NO-OP
  • VECTO:FILL-AND-STROKE
  • VECTO-GEOMETRY:XMIN
  • VECTO-GEOMETRY:ADD
  • VECTO-GEOMETRY:CENTERPOINT
  • VECTO:EVEN-ODD-CLIP-PATH
  • VECTO-GEOMETRY:XPOINT
  • VECTO-GEOMETRY:BOUNDING-BOX
  • VECTO:CLIP-PATH
  • VECTO:LINEAR-DOMAIN
  • VECTO-GEOMETRY:EXPAND
  • VECTO-GEOMETRY:SKEWING-MATRIX
  • VECTO:SET-RGBA-STROKE
  • VECTO-GEOMETRY:APOINT
  • VECTO-GEOMETRY:DIV
  • VECTO:SET-LINE-JOIN
  • VECTO-GEOMETRY:ABS*
  • VECTO-GEOMETRY:NEG
  • VECTO-GEOMETRY:MIDPOINT
  • VECTO:SET-LINE-CAP
  • VECTO:SKEW
  • VECTO:SET-DASH-PATTERN
  • VECTO-GEOMETRY:SUB
  • VECTO-GEOMETRY:POINT-BOX
  • VECTO-GEOMETRY:CONTRACT
  • VECTO-GEOMETRY:COMBINE
  • VECTO-GEOMETRY:MINPOINT
  • VECTO-GEOMETRY:TRANSFORM-FUNCTION
  • VECTO:SAVE-PNG
  • VECTO:SET-RGB-FILL
  • VECTO:STROKE
  • VECTO-GEOMETRY:POINT
  • VECTO-GEOMETRY:MAXPOINT
  • VECTO-GEOMETRY:HEIGHT
  • VECTO-GEOMETRY:DISPLACE
  • VECTO-GEOMETRY:BOX
  • VECTO:ROTATE
  • VECTO-GEOMETRY:ORIGIN-BOX
  • VECTO-GEOMETRY:EMPTYP
  • VECTO:WITH-GRAPHICS-STATE
  • VECTO-GEOMETRY:DISTANCE
  • VECTO:+KAPPA+
  • VECTO:SET-FONT
  • VECTO:EVEN-ODD-FILL-AND-STROKE
  • VECTO-GEOMETRY:WIDTH
  • VECTO:ROTATE-DEGREES
  • VECTO-GEOMETRY:YMIN
  • VECTO:BILINEAR-DOMAIN
  • VECTO-GEOMETRY:ANGLE
  • VECTO-GEOMETRY:Y
  • VECTO:FILL-PATH
  • VECTO-GEOMETRY:ROTATION-MATRIX
  • VECTO:SET-LINE-WIDTH
  • VECTO:GET-FONT
  • VECTO-GEOMETRY:*IDENTITY-MATRIX*
  • VECTO-GEOMETRY:SCALE
  • VECTO-GEOMETRY:*ORIGIN*
  • VECTO-GEOMETRY:TRANSLATION-MATRIX
  • VECTO-GEOMETRY:EQV
  • VECTO:SET-RGBA-FILL