From bf967631c146997d7673798318d94b0a186ec89d Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Fri, 6 Sep 2019 22:29:05 +0200 Subject: Add a fun little fake bonfire _simulation_ …using appropriately colored aging particles --- channel_2d_gl_interop.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'channel_2d_gl_interop.py') diff --git a/channel_2d_gl_interop.py b/channel_2d_gl_interop.py index 3ca623c..377bbd0 100644 --- a/channel_2d_gl_interop.py +++ b/channel_2d_gl_interop.py @@ -171,6 +171,7 @@ projection = get_projection() particles = Particles( lattice.context, + lattice.queue, lattice.memory.float_type, numpy.mgrid[ lattice.geometry.size_x//20:2*lattice.geometry.size_x//20:100j, @@ -184,7 +185,7 @@ def on_display(): lattice.collect_gl_moments() for i in range(0,updates_per_frame): - lattice.update_gl_particles(particles) + lattice.update_gl_particles(particles, aging = False) lattice.sync() -- cgit v1.2.3