gfx:add-oval

(gfx:add-oval path x y width height)


Description:

Appends an oval to x y coordinates of the given

  path.  The oval is constrained to the bounds of the

  rectangle specified by width and height.


Arguments:

           path -- The path to append oval too

         height -- Height of rectangle used to contrain oval

          width -- Width of rectangle used to contrain oval

              x -- x coordinate to append oval

              y -- y coordinate to append oval


Returns: boolean


Examples:

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

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

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

(gfx:add-oval *path* 100 100 300 100)

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

  1) 10.0 *whole-path*)



Back to index