Calculation: `if(Math.round(Math.sin(`

As it turns out, it doesn't need to be 6 to generate this pattern because we round the SIN calculation first. So, *n*))%6==0){//paint it!}`if(Math.round(Math.sin(pInt)*Math.PI)%3==0){...}`

generates this:

### And then there's this...

if(Math.round(Math.sqrt(pInt)*3.14159265)%2==0){//draw Tempest!}

Same formula as above but showing only the prime numbers.

And again with the primes blurred to enhance the pattern they create.

Same stuff, modding 3 this time:

Let's take the average of PI and the Golden Ratio and mod that by 2...Holy guacamole!

So if you were looking for a visual representation of what the relationship amongst primes and PI and PHI might look like, look no further.

Calculation per dot: (Math.round(Math.sqrt(Math.pow(pInt,2))*(1.6180339887*3.14159265)/2)%5==0)

## No comments:

Post a Comment