Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active September 11, 2017 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/130c8827881bf3f9430f7775dbf7199e to your computer and use it in GitHub Desktop.
Save deque-blog/130c8827881bf3f9430f7775dbf7199e to your computer and use it in GitHub Desktop.
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