if(Math.round(Math.sqrt(Math.pow(n,2))*(1.6180339887*3.14159265)/2)%5==0){//paint a dot}
. I'm not sure what the significance is of multiplying PI with the Golden Mean. But it sure looks cool.
A little more number crunching: if(Math.round(Math.sqrt(Math.pow(pInt, (Math.sqrt(2)+1) ))*(1.6180339887*3.14159265)/2)%2==0){//paint weird pattern}
Tighten up the resolution and you approach a nice pattern for a wool rug.
Note that the picture gets clearer the farther from center you go. It seems there is simply more mathematical "space" for the pattern to be expressed.
No comments:
Post a Comment