ImplicitCAD/Examples/example11.hs
2024-01-06 17:41:56 +01:00

11 lines
200 B
Haskell

-- 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