"Jeff Reifel" <jef### [at] rocketmailcom> wrote:
>
> Try something like this:
> pigment{rgb min(1,1.33-ctr*3.7)} finish{diffuse 1 }
Thanks.
But, I solved the problem in such a way:
#declare TableLeg =
#declare ctr = 0;
#declare col = 0;
union {
#while (ctr < 1)
object { TableLegSegment texture{pigment{rgb col}}rotate z*0
translate TableLegShape (ctr)
}
#declare ctr = ctr + 0.00025;
#if (ctr > 0.5)
#declare col = col + 0.0025;
#end
#if (ctr > 0.6)
#declare col = 1;
#end
#end
}
object {
TableLeg
}
Post a reply to this message
|