generateParticleLayer method
Implementation
@override
ParticleLayer<Particle> generateParticleLayer(double x, double y) {
final layer = RainbowParticleLayer(x, y, oldX ?? x, oldY ?? y);
oldX = x;
oldY = y;
return layer;
}
@override
ParticleLayer<Particle> generateParticleLayer(double x, double y) {
final layer = RainbowParticleLayer(x, y, oldX ?? x, oldY ?? y);
oldX = x;
oldY = y;
return layer;
}