mirror of
https://github.com/Haskell-Things/ImplicitCAD.git
synced 2024-09-17 16:08:01 +03:00
12 lines
221 B
Haskell
12 lines
221 B
Haskell
{- ORMOLU_DISABLE -}
|
|
-- Example 11 - the union of a square and a circle.
|
|
import Graphics.Implicit
|
|
|
|
out = union [
|
|
square True (V2 80 80)
|
|
, translate (V2 40 40) $ circle 30
|
|
]
|
|
|
|
main = writeSVG 2 "example11.svg" out
|
|
|