POV-Ray : Newsgroups : povray.unofficial.patches : Square and triangular pattern : Re: Square and triangular pattern Server Time
2 Nov 2024 13:19:46 EDT (-0400)
  Re: Square and triangular pattern  
From: Ken
Date: 31 Aug 1999 06:19:39
Message: <37CBABFD.B14D3EB4@pacbell.net>
Ron Parker wrote:

> #include "colors.inc"
> #macro TriTiles( PigArray )
>   #local hexBlock=pigment { radial pigment_map{
>   #local i=0; #while (i<6)[i/6 PigArray[i]]
>   [(i+1)/6 PigArray[i]] #local i=i+1; #end}}
>   radial pigment_map {#local i=1; #while (i<3)
>   [i/3 hexBlock translate vrotate(x,(120*i-60)*y)]
>   [i/3 hexBlock translate vrotate(x,(120*i+60)*y)]
>   #local i=i+1; #end } warp {repeat x flip x }
>   warp {repeat sqrt(3)*z} scale .5
> #end

Now that is what I call perfectly indented Pov script.

Hooray Mr. Parker !!!

-- 
Ken Tyler

See my 850+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html


Post a reply to this message

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