SizePercentile

Declaration: TParticles.SizePercentile (prob: double): integer;
The function SizePercentile returns the percentile of the particle sizes (in pixels). The parameter prob determines the percentage of small particles (valid range: 0..100).

The function returns the following error codes:

≥0 ... everything is OK, the returned value is the corresponding percentile
-1 ... invalid prob value

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