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)