yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #29603
Re: [Question #706850]: Clumping can't give color to each layer
Question #706850 on Yade changed:
https://answers.launchpad.net/yade/+question/706850
Status: Answered => Solved
Huan confirmed that the question is solved:
Thanks but I solve it via using this:
# set color
for index, layer in enumerate(O.bodies):
if not isinstance(layer.shape, Sphere):
continue
if index % 2 == 0:
layer.shape.color = (1, 1, 1) # white color
else:
layer.shape.color = (0.5, 0, 0) # navy-blue color
--
You received this question notification because your team yade-users is
an answer contact for Yade.