generateFSphereList function
Implementation
List<Model3D> generateFSphereList(int n) {
List<FastSphere3D> spheres = [];
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
for (int k = 0; k < n; k++) {
spheres.add(FastSphere3D(
0.5, Vector3(i.toDouble(), j.toDouble(), k.toDouble()),
color: Color.fromARGB(255, 255, 0, 0)));
}
}
}
return spheres;
}