This code sample demonstrates how to generates a set of points that covers a disc almost evenly, for any number of points. The trick is to use a Fermat's spiral and the golden angle.
| 42 points | 256 points | 999 points |
|---|---|---|
![]() |
![]() |
![]() |
Such points sets are useful for anything that requires sampling a disc.


