gfx:make-oval

(gfx:make-oval x y width height)


Description:

Returns a new path that is the oval bounded by the rectangle x y width height[


Arguments:

         height -- height of bounding rectangle

          width -- width of bounding rectangle

              x -- x coordinate of bounding rectangle

              y -- y coordinate of bounding rectangle


Returns: path


Examples:

(define *canvas* (gfx:make-canvas 800 600))

(define square (gfx:make-square 100 100 50))

(define circle (gfx:make-circle 200 200 20))

(define oval (gfx:make-oval 200 100 50 100))

(gfx:draw-path (now) *canvas* square '(0.1 0.5 0.5 0.5) '(0.4 0.2 0.8 0.4))

(gfx:draw-path (now) *canvas* circle '(0.1 0.5 0.5 0.5) '() 20.0)

(gfx:draw-path (now) *canvas* oval '() '(0.4 0.2 0.8 0.4))



Back to index