Skip to content

Commit

Permalink
Add simple web export example
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson committed Jan 15, 2024
1 parent 740398f commit fc92947
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions examples/web_export.py
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit fc92947

Please sign in to comment.