{"id":20912451,"url":"https://github.com/fogleman/poissondisc","last_synced_at":"2025-05-13T08:30:51.681Z","repository":{"id":144202093,"uuid":"146825599","full_name":"fogleman/poissondisc","owner":"fogleman","description":"Poisson Disc sampling in Go.","archived":false,"fork":false,"pushed_at":"2019-09-23T20:12:24.000Z","size":6,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T20:25:32.763Z","etag":null,"topics":["go","golang","poisson-disc-sampling"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fogleman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-31T01:29:02.000Z","updated_at":"2024-02-14T14:28:48.000Z","dependencies_parsed_at":"2023-06-18T05:15:48.594Z","dependency_job_id":null,"html_url":"https://github.com/fogleman/poissondisc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2Fpoissondisc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2Fpoissondisc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2Fpoissondisc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2Fpoissondisc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fogleman","download_url":"https://codeload.github.com/fogleman/poissondisc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253903611,"owners_count":21981726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","poisson-disc-sampling"],"created_at":"2024-11-18T14:27:24.801Z","updated_at":"2025-05-13T08:30:51.673Z","avatar_url":"https://github.com/fogleman.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## poissondisc\n\nPoisson Disc sampling in Go.\n\n### Installation\n\n    $ go get -u github.com/fogleman/poissondisc\n\n### Documentation\n\nhttps://godoc.org/github.com/fogleman/poissondisc\n\nLearn more about Poisson-disc sampling:\n\nhttps://www.jasondavies.com/poisson-disc/\n\nhttps://bl.ocks.org/mbostock/dbb02448b0f93e4c82c3\n\n### Usage\n\n```go\nvar x0, y0, x1, y1, r float64\nx0 = 0    // bbox min\ny0 = 0    // bbox min\nx1 = 1000 // bbox max\ny1 = 1000 // bbox max\nr = 10    // min distance between points\nk := 30   // max attempts to add neighboring point\n\npoints := poissondisc.Sample(x0, y0, x1, y1, r, k, nil)\n\nfor _, p := range points {\n\tfmt.Println(p.X, p.Y)\n}\n```\n\n### Example\n\n    $ go run examples/example.go\n\n![Example](https://i.imgur.com/8TJYd9s.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffogleman%2Fpoissondisc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffogleman%2Fpoissondisc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffogleman%2Fpoissondisc/lists"}