gpu_particle_burst_05.py Diff
gpu_particle_burst_05.py
--- /home/docs/checkouts/readthedocs.org/user_builds/arcade-library/checkouts/latest/doc/tutorials/gpu_particle_burst/gpu_particle_burst_04.py
+++ /home/docs/checkouts/readthedocs.org/user_builds/arcade-library/checkouts/latest/doc/tutorials/gpu_particle_burst/gpu_particle_burst_05.py
@@ -66,7 +66,7 @@
""" Generate data for each particle """
for i in range(PARTICLE_COUNT):
angle = random.uniform(0, 2 * math.pi)
- speed = random.uniform(0.0, 0.3)
+ speed = abs(random.gauss(0, 1)) * .5
dx = math.sin(angle) * speed
dy = math.cos(angle) * speed
yield initial_x