POV-Ray : Newsgroups : povray.binaries.images : Pavement conundrum : Re: Pavement conundrum Server Time
1 Aug 2024 16:26:18 EDT (-0400)
  Re: Pavement conundrum  
From: Thomas de Groot
Date: 10 Sep 2008 04:34:55
Message: <48c786af$1@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.