Examples
Murali's runnable examples now live in the dedicated murali-examples repository. This page groups them 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.
The file paths below refer to that companion examples repository.
Quick Start Picks​
If you only want a few examples to begin with:
examples/basics/basics_showcase.rs- foundational Murali primitives, layout, styling, and motionexamples/animation/animation_showcase.rs- the main animation vocabulary in one fileexamples/text_and_path_animation_showcase.rs- consolidated draw, text reveal, and indicate semanticsexamples/text_and_math/latex_and_typst_showcase.rs- formula rendering and morphing across LaTeX and Typstexamples/vector_field_and_streamlines.rs- field and flow visuals in one placeexamples/three_d/textured_surface_showcase.rs- textured 3D surface workflowexamples/murali_logo.rs- branding composition and export-ready logo framing
By Intent​
Learn the basics​
examples/basics/basics_showcase.rsWhat to notice: foundational tattvas, layout helpers, styling, paths, arrows, and simple motionexamples/basics/shapes.rsWhat to notice: primitive tattvas and authored placement
Understand animation verbs​
examples/animation/animation_showcase.rsWhat to notice: core motion, follow behavior, semantic transforms, and morphing in one sceneexamples/text_and_path_animation_showcase.rsWhat to notice:draw,undraw,typewrite_text,reveal_text, andindicatein one staged flow
Work with text and formulas​
examples/graphs_and_fields/graph_showcase.rsWhat to notice: 2D axes labels, function plots, sampled points, and a 3D graph/camera panel in one sceneexamples/text_and_math/latex_and_typst_showcase.rsWhat to notice: static LaTeX and Typst rendering plus same-renderer and cross-renderer morphsexamples/text_and_math/formula_morph_showcase.rsWhat to notice: vector formula morphs and continuity-oriented math animationexamples/text_and_math/matrix_showcase.rsWhat to notice: matrix styling, highlighting, and mathematical layoutexamples/text_and_math/table_showcase.rsWhat to notice: table configuration and reveal/write patterns
Build graphs, fields, and STEM visuals​
examples/graphs_and_fields/graph_showcase.rsWhat to notice: function graphs in 2D plus 3D graph content combined with camera motionexamples/vector_field_and_streamlines.rsWhat to notice:VectorFieldstyling, streamline seeding, and when to combine arrows with flow traces
Tell stories and explain AI systems​
examples/stepwise_showcase.rsWhat to notice: staged reveal structure, routed feedback, and embedded contentexamples/neural_network_showcase.rsWhat to notice: neural-network diagrams, deactivated nodes, and multiple signal-flow playback patterns
Use updaters and dynamic systems​
examples/dynamics/force_field_showcase.rsWhat to notice: updater-driven electric fields, from single-charge motion to multi-charge superpositionexamples/dynamics/projectile_with_updaters.rsWhat to notice: dependent motion and simulation-style authoringexamples/dynamics/traced_path_rolling_circle.rsWhat to notice:TracedPathand continuously evolving geometryexamples/dynamics/particle_belt.rsWhat to notice: higher-density procedural visuals
Work in 3D​
examples/three_d/parametric_surface_showcase.rsWhat to notice: baseline surface authoringexamples/three_d/parametric_surface_animated.rsWhat to notice: animated 3D surfacesexamples/three_d/parametric_surface_wireframe_showcase.rsWhat to notice: wireframe-first exploration scenesexamples/three_d/textured_surface_showcase.rsWhat to notice: path-based texture loading with surfaces
Export for assets, posts, and captures​
examples/murali_logo.rsWhat 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