Examples
Murali's reference runnable examples live in the GitHub repository for Murali.
If you are new to Murali, read First Scene, Which API Should I Use?, and Animations first. Then come back here when you want concrete scenes to run and modify.
Running Examples​
Clone the repository and run any example locally:
cargo run --example hello_shapes
The full catalog lives in the repository at examples/README.md.
The published crate excludes examples/**, so these reference examples are available from the repository rather than from the crates.io package alone.
Quick Start Picks​
If you only want a few examples to begin with:
hello_shapes- a first scene with a square, circle, rectangle, and polygonmotion_basics- move, scale, rotate, and fade with clear pacingtext_animation- write, reveal, indicate, and simple draw semanticscode_blocks- syntax-highlighted code presented as a scene elementgraphs_2d- axes, function plots, labels, and sampled pointssurfaces_3d- a shaded form-first surface with camera movementmurali_logo- the brand mark as a polished visual/reference composition
By Intent​
Foundations​
hello_shapesWhat to notice: primitive tattvas and simple authored placementlayout_and_groupsWhat to notice:next_to,align_to,HStack,VStack, andGroup.move_tostyle_and_pathsWhat to notice: fill, stroke, dashes, arrows, and authored pathsmotion_basicsWhat to notice: the core motion verbs with calm timing
Text And Math​
text_animationWhat to notice:draw,undraw,typewrite_text,reveal_text, andindicatecode_blocksWhat to notice: syntax-highlighted code as a first-class tattva with layout and pacinglatex_and_typstWhat to notice: static LaTeX and Typst rendering plus a compact renderer-crossing morphequation_and_matrix_animationWhat to notice: equation continuity and matrix-step highlightingtablesWhat to notice: one table example that writes in, pauses, and unwrites cleanly
Graphs And Fields​
graphs_2dWhat to notice: axes, number plane, one function graph, and sampled pointscurves_3dWhat to notice: one parametric space curve with 3D framingstreamlinesWhat to notice: seeded flow trajectories without mixing in arrow fields
Dynamics And Systems​
force_fieldsWhat to notice: updater-driven electric fields responding to moving chargesparticlesWhat to notice: one orbital belt with cinematic motiontraced_pathsWhat to notice: a rolling wheel whose chosen point leaves behind a cycloidneural_networksWhat to notice: network structure and signal playbacktransformer_attentionWhat to notice: tokens, attention relationships, and transformer-style block compositionstepwise_storytellingWhat to notice: staged reveal flow and routed narrative transitions
Three D​
surfaces_3dWhat to notice: one translucent surface whose form is explained through color and camera framingwireframe_surfacesWhat to notice: wireframe-specific curvature readingtextured_surfaceWhat to notice: UV texture mapping on a parametric globe
Brand And Demos​
murali_logoWhat to notice: a reference brand composition built from authored guides and bezier curvesmurali_logo_transparentWhat to notice: export-oriented logo capture with transparent background and simple scene flagsfourier_formula_traceWhat to notice: Fourier coefficients reordered into epicycles that rebuild a Typst formula outlinemap_projection_morphWhat to notice: the Earth texture bending through multiple map projections
Choosing An Example​
Use this rough mapping when you are not sure where to start:
- learning scene structure: start with
hello_shapesandlayout_and_groups - learning animation vocabulary: start with
motion_basicsandtext_animation - learning text, equations, or tables: start with
latex_and_typst,equation_and_matrix_animation, andtables - learning graphs and fields: start with
graphs_2dandstreamlines - learning updater-driven motion: start with
force_fields,particles, andtraced_paths - learning 3D camera and surface work: start with
curves_3d,surfaces_3d, andtextured_surface - learning story-first scenes: start with
stepwise_storytelling - learning AI scenes: start with
neural_networksandtransformer_attention - learning branding study scenes: start with
murali_logo - learning branding export scenes: start with
murali_logo_transparent