Skip to content

Commit

Permalink
working step rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrJustyna committed Feb 23, 2024
1 parent f324d97 commit c30045b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion HelloWorld.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,15 @@
> twoShapes :: Diagram B
> twoShapes = square 1 # fc aqua `atop` circle 1
>
> main = mainWith twoCircles
> vectorShape :: Diagram B
> vectorShape = fromOffsets . map r2 $ [(0,0), (1,1), (-2,1), (-1,-4)]
>
> step :: Diagram B
> step = fromOffsets
> [V2 0 0,
> V2 0 1,
> V2 2 0,
> V2 0 (-1),
> V2 (-2) 0]
>
> main = mainWith step
2 changes: 1 addition & 1 deletion hello-world.svg
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 c30045b

Please sign in to comment.