From fc92947225460f63c13bf3165f2e6ed850ad84e3 Mon Sep 17 00:00:00 2001 From: Adam Tyson Date: Mon, 15 Jan 2024 14:36:46 +0000 Subject: [PATCH] Add simple web export example --- examples/web_export.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 examples/web_export.py diff --git a/examples/web_export.py b/examples/web_export.py new file mode 100644 index 00000000..810d1e6a --- /dev/null +++ b/examples/web_export.py @@ -0,0 +1,20 @@ +from pathlib import Path + +from myterial import orange +from rich import print + +from brainrender import Scene + +print(f"[{orange}]Running example: {Path(__file__).name}") + +# Create a brainrender scene +scene = Scene(title="brainrender web export") + +# Add brain regions +scene.add_brain_region("MOs", "CA1", alpha=0.2, color="green") + +# Render! +scene.render() + +# Export to web +scene.export("brain_regions.html") \ No newline at end of file