Author Topic: Colouring of atoms  (Read 68 times)

jb2191

  • Newbie
  • *
  • Posts: 2
Colouring of atoms
« on: April 10, 2018, 03:59:54 PM »
Hello Everybody

Does anybody know how to colour atoms in OVITO according a column in an input file for example if say I put a column in the input file called colour, can OVITO read hex or RGB?

Thanks

Jonathan


Alexander Stukowski

  • Administrator
  • Sr. Member
  • *****
  • Posts: 348
Re: Colouring of atoms
« Reply #1 on: April 10, 2018, 05:55:35 PM »
Yes, you can let OVITO read in per-atom color values. You will need three extra columns in your input file with the RGB components in the range [0,1].

Make sure these columns get mapped to the Color.R, Color.G and Color.B particle properties during file import. Depending on the file format you are using, it may be possible to add some metadata to the header of the input file so that this mapping happens automatically.

jb2191

  • Newbie
  • *
  • Posts: 2
Re: Colouring of atoms
« Reply #2 on: April 14, 2018, 02:23:13 PM »
Great! Thank you for your help!