ImplicitCAD/Examples/example12.hs
Richard Marko ed7e38f2c8 Update examples to new API
Closes #360.
2021-04-17 13:36:31 +02:00

11 lines
276 B
Haskell

-- Example 12 - the rounded union of a square and a circle.
import Control.Applicative (pure)
import Graphics.Implicit
out = unionR 14 [
square True (pure 80) -- pure 80 turns into (V2 80 80)
, translate (pure 40) $ circle 30
]
main = writeSVG 2 "example12.svg" out