gfx:scale-path

(gfx:scale-path time path scale-x scale-y type)


Description:

Scale path by scale-x and scale-y using a type of *matrix-scale* *bounds-scale* or *centre-scale*


Arguments:

           path -- path

        scale-y -- scale y axis

           type -- one of *matrix-scale* *bounds-scale* or *centre-scale*

           time -- in samples

        scale-x -- scale x axis


Returns: boolean


Examples:

(define loopdloop

   (lambda (time path stroke fill x y scale)

      (gfx:draw-path time canvas path stroke fill)

      (gfx:scale-path time path scale scale *gfx:matrix-scale*)

      (gfx:rotate-path time path 2 x y *gfx:degrees*)

      (if *go*

          (callback (+ time 1000) 'loopdloop 

                    (+ time 3000) path stroke fill 

                    (+ x .15) (+ y .15) (+ scale 0.00001)))))



Back to index