From c1ac93c5b2844e24360be4b4e5871a5bd3075447 Mon Sep 17 00:00:00 2001 From: clewis7 Date: Tue, 21 Jan 2025 11:20:44 -0500 Subject: [PATCH] start galaxy demo --- examples/misc/galaxy_collision.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 examples/misc/galaxy_collision.py diff --git a/examples/misc/galaxy_collision.py b/examples/misc/galaxy_collision.py new file mode 100644 index 000000000..14a4b4bee --- /dev/null +++ b/examples/misc/galaxy_collision.py @@ -0,0 +1,22 @@ +""" +Galaxy Collision Example +======================== + +Example showing galaxy collision. +""" + +# test_example = false +# sphinx_gallery_pygfx_docs = 'animate 8s' + +import numpy as np +import fastplotlib as fpl + + +figure = fpl.Figure(size=(700, 560), cameras=["3d"]) + + +# NOTE: `if __name__ == "__main__"` is NOT how to use fastplotlib interactively +# please see our docs for using fastplotlib interactively in ipython and jupyter +if __name__ == "__main__": + print(__doc__) + fpl.loop.run() \ No newline at end of file