As I work on this now, my only question concerns your visual objective.
Do you want to use the arc-sine to make self-contained "pixel planets"?
EDIT: On second glance, I would suhhest the following:
1. for your "src" statements, I would use the "r/theta" formula, since I would think that your goal is to mimic an orbital path of some sort, and "r" is the way to go in terms of making a circular flowfield. Having the visible pixel-flow go either up/down or left/right doesn't seem to make sense with what you're trying to do.
2. You'll need additional randomizations in more of the "A" variables if you also intend to make the planets' size differ each time the effect loads.
Once we get this squared away, I'll post a formula that I hope will be more to your liking.
PS: I would think that the (sqrt) function makes the planets anyway, no? I'll keep tweaking and let you know what else I can recommend for you.
dklr wrote:
2 I can't use r and theta because I want the planets to be in random positions...
You might then want to keep X and Y as source statements (src) and use their polar counterpartrs (r, theta) somewhere in the mix (i.e. maybe in your A or D vars??) to see how the best of both worlds can be achieved.
As a matter of opinion, I still think that strictly using X/Y wouldn't be wise if you want your planets to have a sort of orbital path thing going.