|
|
While I prefer ChrisB's solution as being closer to the original idea (and
purpose), your variation is very nice indeed introduces an interesting
modulation of the pattern from rectangular to diamond-shaped. I love it!
Thomas
"Tek" <tek### [at] evilsuperbraincom> schreef in bericht
news:48c6d20f@news.povray.org...
>I had a bit of a play with a function to create this pattern. Obviously I'm
>cheating and not using rectangular blocks. Here's the code:
>
> #declare Wrap = function(a) { (a/2-floor(a/2))*2-1 }
> #declare Feeder = function(x,y) { Wrap( (y -
> sqrt(1-pow(Wrap(x*sqrt(2))/sqrt(2),2)))*8 ) }
> #declare Tiles =
> pigment { function {
> min(
> 1-abs(Feeder(x,y))
> ,
> abs(Wrap(8.8*(-Feeder(x,y)*.1+.9)*Wrap(x*sqrt(2))))
> )
> } }
>
>
> --
> Tek
> http://evilsuperbrain.com
>
Post a reply to this message
|
|