gfx:add-curve

(gfx:add-curve path x y cx1 cy1 cx2 cy2)


Description:

Appends a curve to the given path where the curve

  uses two control points and extends from the current end

  point to x,y.  See core graphics CGPathAddCurveToPoint for

  more information.


Arguments:

           path -- The path to append the curve too

              x -- Extends curve to x

            cx1 -- x coordinate of control point one

            cy2 -- y coordinate of control point two

              y -- Extends curve to y

            cx2 -- x coordinate of control point two

            cy1 -- y coordinate of control point one


Returns: boolean


Examples:

(define *canvas* (gfx:make-canvas '(100 100 600 600))

(define *path* (gfx:make-path))

(gfx:set-start-point *path* 100 100)

(gfx:add-curve *path* 200 200 240 120 100 290)

(gfx:draw-path (now) *canvas* *path* '(0 0 1 1) '(1 0 0

  1) 10.0)



Back to index