ImplicitCAD/Examples/example12.hs

9 lines
238 B
Haskell
Raw Normal View History

-- Example 12 - the rounded union of a square and a circle.
import Graphics.Implicit
out = unionR 14 [
rectR 0 (-40,-40) (40,40),
translate (40,40) (circle 30) ]
2018-08-07 18:25:59 +03:00
main = writeSVG 2 "example12.svg" out