Skip to content

Instantly share code, notes, and snippets.

@deque-blog

deque-blog/ring.hs

Last active Sep 11, 2017
Embed
What would you like to do?
ring :: Coord2D -> Radius -> Radius -> Shape2D
ring center smallRadius bigRadius =
intersect
(disk center bigRadius)
(outside (disk center smallRadius))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment