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/animated_motion.rs- minimal scene + motionexamples/animation/semantic_animation_showcase.rs- the main animation vocabularyexamples/text_and_math/latex_showcase.rs- formula renderingexamples/graphs_and_fields/vector_field_showcase.rs- field-style scenesexamples/three_d/parametric_surface_showcase.rs- basic 3D surface workflowexamples/branding_and_export/screenshot_markers.rs- export-time captures
By Intent​
Learn the basics​
examples/basics/animated_motion.rsWhat to notice: scene setup, timeline authoring, simple motionexamples/basics/shapes.rsWhat to notice: primitive tattvas and authored placementexamples/basics/layout_playground.rsWhat to notice: layout helpers likenext_to,align_to, and composition patternsexamples/basics/styling_showcase.rsWhat to notice: colors, stroke/fill choices, and presentation polish
Understand animation verbs​
examples/animation/semantic_animation_showcase.rsWhat to notice: high-level verbs likeappear,draw, and fadesexamples/animation/text_reveal_effects_showcase.rsWhat to notice:reveal_text,typewrite_text, and text-specific stagingexamples/animation/write_effect_showcase.rsWhat to notice: path/table writing effectsexamples/animation/unwrite_showcase.rsWhat to notice: reverse/retract patternsexamples/animation/morph_and_move.rsWhat to notice: morphing while keeping scene choreography readable
Work with text and formulas​
examples/text_and_math/axes_and_labels.rsWhat to notice: lightweightLabelusage in explanatory scenesexamples/text_and_math/latex_showcase.rsWhat to notice: standard LaTeX rendering flowexamples/text_and_math/typst_showcase.rsWhat to notice: Typst-based typesetting and modern math/text authoringexamples/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_on_axes.rsWhat to notice: function graphs in a teaching-style sceneexamples/graphs_and_fields/vector_field_showcase.rsWhat to notice:VectorFieldstyling and density choicesexamples/graphs_and_fields/vector_field_and_streamlines.rsWhat to notice: when to combine arrows with flow tracesexamples/graphs_and_fields/stream_lines_showcase.rsWhat to notice: streamline integration settings and boundsexamples/graphs_and_fields/graph_draw_3d_camera.rsWhat to notice: graph content combined with camera motion
Tell stories and explain AI systems​
examples/ai_and_storytelling/stepwise.rsWhat to notice: staged reveal structureexamples/ai_and_storytelling/stepwise_script_api.rsWhat to notice: authored storytelling flowexamples/ai_and_storytelling/neural_network_v2.rsWhat to notice: composite AI diagramsexamples/ai_and_storytelling/agentic_flow_chart.rsWhat to notice: flow chart structure and reveal choreographyexamples/ai_and_storytelling/ai_teaching_showcase.rsWhat to notice: combining text, diagrams, and teaching-style pacing
Use updaters and dynamic systems​
examples/dynamics/force_field_with_updaters.rsWhat to notice: updater-driven behavior rather than fixed schedulingexamples/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/branding_and_export/blog_showcase.rsWhat to notice: export settings for polished deliverablesexamples/branding_and_export/export_aiu_attention.rsWhat to notice: customExportSettingsexamples/branding_and_export/screenshot_markers.rsWhat to notice: screenshot and GIF capture schedules authored in the sceneexamples/branding_and_export/murali_logo.rsWhat to notice: branding-quality composition and export output
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 or AI-first scenes: start in
examples/ai_and_storytelling - learning updater-driven motion: start in
examples/dynamics - learning camera and surfaces: start in
examples/three_d - learning asset generation and captures: start in
examples/branding_and_export