Created
October 18, 2015 15:20
-
-
Save LukaHorvat/a198888c99198662f1cf to your computer and use it in GitHub Desktop.
diag.hs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lns :: Diagram SVG | |
lns = Diag.fromOffsets [Diag.unitX # Diag.rotateBy (1/8)] | |
pattern :: Diagram SVG | |
pattern = Diag.gridCat $ replicate 64 lns | |
circle :: Diagram SVG | |
circle = Diag.circle 4 `Diag.clipBy` pattern | |
where circleClip = Diag.circle 4 # Diag.translate (Diag.r2 (4, 4)) # Diag.showOrigin :: Diagram SVG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment