![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhvRnS6SCjqx-NDRrunscxzFsVVEyz9mudC9cGNAaIjC7KnSFwbY7VqJs5qCstQc8CVotpaT_7RqxaryML-oBs6Y3l6I7zAcAaoSFQgKn6_vu-s3kY9t012zo2zWC-nbBBkf8t-alOYafR/s400/sqrt-PIxGold-Power-01.jpg)
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