gfx:draw-path

(gfx:draw-path time canvas path stroke fill [stroke-width])


Description:

No Description For gfx:draw-path


Arguments:

           path -- path to draw

         canvas -- canvas to draw to

         stroke -- stroke colour (r g b a). an emptly list will stop the stroke. the symbol stencil will remove the stroke (i.e. transparent)

   stroke-width -- optional stroke width. defaults to 1.0

           fill -- fill colour (r g b a). an empty list will stop the fill. the symbol stencil will remove the fill (i.e. transparent)

           time -- time to draw at


Returns: boolean


Related: gfx:draw-image 


Examples:

; stroke and fill with default width

(gfx:draw-path (now) *canvas* *square* '(0.3 0.4 0.5 1.0) '(1.0 0.2 0.4 0.5))

; just fill

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

; just stroke with width 4.0

(gfx:draw-path (now) *canvas* *square* '(0.3 0.4 0.5 1.0) '() 4.0)

; cut out a square stencil

(gfx:draw-path (now) *canvas* *square* 'stencil 'stencil 4.0)



Back to index