Skip to content

Commit

Permalink
Updated documentation and added an example image.
Browse files Browse the repository at this point in the history
  • Loading branch information
epost committed Oct 28, 2014
1 parent b7dc826 commit 64fec10
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@

A demonstration of a Turtle interpreter based on the Free monad, with HTML Canvas graphics support.

Example:
[[file:img/two-stars.png]]

#+BEGIN_SRC purescript
main :: Context2DEff
main =
get2DContext "turtleCanvas" >>=
beginStroke >>=
compileTurtleProg star >>=
endStroke
main = renderTurtleProgOnCanvas "turtleCanvas" $ do
star
penUp
forward 40
left 100
penDown
color Red
star

star = do
right 144
Expand Down
Binary file added img/two-stars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 64fec10

Please sign in to comment.