Closed DailyStruggle closed 3 years ago
I like what ya did here, and I love the explanation of the change. thank you for your contribution! I will do some tests before the next update, but this will be very much appreciated for those looking for a more flat randomness across the "donut" random generation.
also, I built a basic logging/learning algorithm on top of this design for performance improvements and for optional unique placements and automatic region expansion.
I'm not sure how to work it in within this repo, but it's an interesting bonus feature of the design.
The circle calculation trended towards the outer edge where min>0. A new donut calculation flattens the spatial distribution.
The new calculation follows a 2D spiral that turns once per integer step, with a length equal to the area within the donut.![I2dPFCI](https://user-images.githubusercontent.com/28832622/127975053-e6a5ca9a-3a91-45ad-a9a0-359885c99156.png)
using maxrad = 4096 min = 0
it matches the old distribution![image](https://user-images.githubusercontent.com/28832622/127974524-54d2708a-138d-4880-8089-5667533bed6b.png)
using maxRad = 4096 min = 1024
there's an improvement around the donut hole![image](https://user-images.githubusercontent.com/28832622/127973882-aa135f40-4d9c-42e8-8e38-f68bcb250d70.png)
python scripts used: before
after