ClassColors

Declaration: TParticles.ClassColors[ClsIx: integer]: TColor;
The array property ClassColors allows to access the color of a particular class which is specified by the parameter ClsIx (valid range: 0..NClasses). If you assign a color to a non-existent class (i.e. if the ClsIx is less than 0 or greater than NClasses) the call will be ignored on write or return black on read.

Please note that the particle class colors are independent of the global class color palette.

Hint 1: The class color with index 0 does not address a particular class (as classes are numbered from 1 to NClasses). It can be used as a color for unknown or unassigned classes.

Hint 2: In order to access the particles currently loaded in the particle editor you can use the pre-declared global variable PEData.