Hi,

I found the Compute property can compute the color of every atom, including RGB. Can I color atoms by the output, , and how?

thanks in advance

Hi @mmt_jiang,

The color tuple is coded between 0 and 1.

So if your box origin is at Z=10, you would use a formula like

`(Position.Z-10)/CellSize.Z`

to color your particle in red using a linear scale from 0 to 1 depending on their height.

1 Like

Wow, thank you very much!!