On 2 Mar 2006 at 15:48, Brian Schott said: > Please run the attached standalone openGL script. > What I want and what I get are two different things. I would > like to understand how to get what I want which is the > following. > > > Want: > 1 red turtle and 1 blue turtle > 1 of the turtles has a green head and a magenta nose > 1 of the turtles has a magenta head and a green nose > > And I would like to understand why I am getting the > following. > > Get: > 1 red turtle and 1 blue turtle > BOTH of the turtles have a green head and a magenta nose > Three extra spheres in the upper center. I think 1 is green > and 2 are magenta, but I am color defective and no one is > here for me to ask.
Copying the four lines beginning with the last "HCOLOR =:" to follow the "turtle1 makelist ..." and changing the values of both HCOLOR and NCOLOR in the copy to "0 1 1 1" results in both heads, both noses and all the balls becoming cyan. My immediate deduction is that the duplicated head/nose colour results from you having used the same list item for both heads and the same for both noses: last version wins. If you want them different colours, you'd better give them separate identities. Still no clue about the spurious balls though. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
