Toot

Written by demofox on 2024-02-28 at 18:16

@bobbydigitales that will give you evenly spaced points in a rectangle easily. If you want more complex shapes (circle, triangle, etc) you can do rejection sampling - ignore any candidate that is in an invalid location.

If you want different densities based on a density map, you should be able to change how distance between points is calculated to account for that I think.

=> More informations about this toot | View the thread | More toots from demofox@mastodon.gamedev.place

Mentions

=> View bobbydigitales@mastodon.gamedev.place profile

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/112010474286460870
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
227.555552 milliseconds
Gemini-to-HTML Time
0.369784 milliseconds

This content has been proxied by September (ba2dc).