sample method

  1. @override
Vector4 sample(
  1. double normalizedAge,
  2. double random01, [
  3. Vector4? out
])
override

Writes the color for a particle at normalizedAge with per-particle random random01 into out (allocated when null) and returns it.

Implementation

@override
Vector4 sample(double normalizedAge, double random01, [Vector4? out]) =>
    gradient.sample(normalizedAge, out);