Skip to content

Commit

Permalink
closePath
Browse files Browse the repository at this point in the history
  • Loading branch information
paf31 committed Aug 13, 2014
1 parent 9eb5985 commit 4663a9c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@

clip :: forall eff. Context2D -> Eff (canvas :: Canvas | eff) Context2D

closePath :: forall eff. Context2D -> Eff (canvas :: Canvas | eff) Context2D

fill :: forall eff. Context2D -> Eff (canvas :: Canvas | eff) Context2D

fillPath :: forall eff a. Context2D -> Eff (canvas :: Canvas | eff) a -> Eff (canvas :: Canvas | eff) a
Expand Down
8 changes: 8 additions & 0 deletions src/Graphics/Canvas.purs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,14 @@ foreign import moveTo
\ };\
\}" :: forall eff. Context2D -> Number -> Number -> Eff (canvas :: Canvas | eff) Context2D

foreign import closePath
"function closePath(ctx) {\
\ return function() {\
\ ctx.closePath();\
\ return ctx;\
\ };\
\}" :: forall eff. Context2D -> Eff (canvas :: Canvas | eff) Context2D

strokePath :: forall eff a. Context2D -> Eff (canvas :: Canvas | eff) a -> Eff (canvas :: Canvas | eff) a
strokePath ctx path = do
beginPath ctx
Expand Down

0 comments on commit 4663a9c

Please sign in to comment.