|
|
"Jimi aka James" <pat### [at] gmailcom> wrote:
>
> #declare lors = array[5] {Black,White,Red,Green,Blue}
Here, you declare "lors" as an array of colors...
> #declare kolorek = str((Rand_Array_Item(lors,RS))
.... here you seem to read out the array, and convert it to a string (why?? and
I'm rather surprised that you don't get an error here already)...
> object {chopek translate <Index3, Index1*0.5, Index2*0.5> pigment { color
> kolorek }
.... while here again you want to have it interpreted as a color.
I guess it should work fine if you remove the "str()" from the declaration of
"kolorek"; actually, I think it should read:
#declare kolorek = Rand_Array_Item(lors,RS);
Post a reply to this message
|
|