Skip to main content
Version: 0.1.4

Examples

Murali ships with a strong examples folder, but raw file names are not the best way to learn the library. This page groups examples by intent so you can quickly find the right starting point.

If you are new to Murali, read First Scene, Which API Should I Use?, and Animations first. Then come back here when you want a concrete pattern to copy.

Quick Start Picks​

If you only want a few examples to begin with:

  • examples/basics/basics_showcase.rs - foundational Murali primitives, layout, styling, and motion
  • examples/animation/animation_showcase.rs - the main animation vocabulary in one file
  • examples/text_and_math/latex_and_typst_showcase.rs - formula rendering and morphing across LaTeX and Typst
  • examples/graphs_and_fields/vector_field_showcase.rs - field-style scenes
  • examples/three_d/parametric_surface_showcase.rs - basic 3D surface workflow
  • examples/murali_logo.rs - branding composition and export-ready logo framing

By Intent​

Learn the basics​

  • examples/basics/basics_showcase.rs What to notice: foundational tattvas, layout helpers, styling, paths, arrows, and simple motion
  • examples/basics/shapes.rs What to notice: primitive tattvas and authored placement

Understand animation verbs​

  • examples/animation/animation_showcase.rs What to notice: core motion, follow behavior, semantic transforms, and morphing in one scene

Work with text and formulas​

  • examples/graphs_and_fields/graph_showcase.rs What to notice: 2D axes labels, function plots, sampled points, and a 3D graph/camera panel in one scene
  • examples/text_and_math/latex_and_typst_showcase.rs What to notice: static LaTeX and Typst rendering plus same-renderer and cross-renderer morphs
  • examples/text_and_math/formula_morph_showcase.rs What to notice: vector formula morphs and continuity-oriented math animation
  • examples/text_and_math/matrix_showcase.rs What to notice: matrix styling, highlighting, and mathematical layout
  • examples/text_and_math/table_showcase.rs What to notice: table configuration and reveal/write patterns

Build graphs, fields, and STEM visuals​

  • examples/graphs_and_fields/graph_showcase.rs What to notice: function graphs in 2D plus 3D graph content combined with camera motion
  • examples/graphs_and_fields/vector_field_showcase.rs What to notice: VectorField styling and density choices
  • examples/graphs_and_fields/vector_field_and_streamlines.rs What to notice: when to combine arrows with flow traces
  • examples/graphs_and_fields/stream_lines_showcase.rs What to notice: streamline integration settings and bounds

Tell stories and explain AI systems​

  • examples/stepwise_showcase.rs What to notice: staged reveal structure, routed feedback, and embedded content
  • examples/neural_network_showcase.rs What to notice: neural-network diagrams, deactivated nodes, and multiple signal-flow playback patterns

Use updaters and dynamic systems​

  • examples/dynamics/force_field_showcase.rs What to notice: updater-driven electric fields, from single-charge motion to multi-charge superposition
  • examples/dynamics/projectile_with_updaters.rs What to notice: dependent motion and simulation-style authoring
  • examples/dynamics/traced_path_rolling_circle.rs What to notice: TracedPath and continuously evolving geometry
  • examples/dynamics/particle_belt.rs What to notice: higher-density procedural visuals

Work in 3D​

  • examples/three_d/parametric_surface_showcase.rs What to notice: baseline surface authoring
  • examples/three_d/parametric_surface_animated.rs What to notice: animated 3D surfaces
  • examples/three_d/parametric_surface_wireframe_showcase.rs What to notice: wireframe-first exploration scenes
  • examples/three_d/textured_surface_showcase.rs What to notice: path-based texture loading with surfaces

Export for assets, posts, and captures​

  • examples/murali_logo.rs What to notice: branding-quality composition and export-ready logo output in one scene

Choosing An Example​

Use this rough mapping when you are not sure where to start:

  • learning scene structure: start in examples/basics
  • learning animation vocabulary: start in examples/animation
  • learning text, equations, or tables: start in examples/text_and_math
  • learning graphs, fields, or STEM visuals: start in examples/graphs_and_fields
  • learning story-first scenes: start with examples/stepwise_showcase.rs
  • learning neural-network scenes: start with examples/neural_network_showcase.rs
  • learning updater-driven motion: start in examples/dynamics
  • learning camera and surfaces: start in examples/three_d
  • learning branding and export scenes: start with examples/murali_logo.rs