ImplicitCAD/Examples/example12.hs
Richard Marko 6d4162e137 Tidy Haskell examples
Both in Examples dir and README.
2020-12-05 10:34:57 +01:00

10 lines
204 B
Haskell

-- Example 12 - the rounded union of a square and a circle.
import Graphics.Implicit
out = unionR 14 [
squareR 0 (80, 80)
, translate (40,40) $ circle 30
]
main = writeSVG 2 "example12.svg" out