1. Home
  2. /
  3. Velato
  4. /
  5. Nested Loop Example in Velato

Nested Loop Example in Velato - Velato Typing CST Test

Loading…

Nested Loop Example in Velato — Velato Code

Shows nested loops with MIDI note sequences representing inner and outer loops.

[MIDI-BASED] Notes: C4 -> outer loop start, D4 -> inner loop start, E4 -> increment, F4 -> check inner, G4 -> jump inner start, H4 -> check outer, I4 -> jump outer start, J4 -> output. Stored in a .mid file.

Velato Language Guide

Velato is a Rust library (crate) that parses and renders Vello-compatible graphics from Lottie JSON animation files, enabling vector animations in Rust applications.

Primary Use Cases

  • ▸Rendering Lottie animations in Rust desktop or cross‑platform apps
  • ▸Embedding vector-based animations in Rust game UIs
  • ▸Interactive UI animations for Rust GUI applications
  • ▸Converting Lottie projects to native Rust-based rendering pipelines
  • ▸Prototyping or experimenting with animated graphics in Rust + Vello

Notable Features

  • ▸Parse full Lottie JSON into Rust structures
  • ▸Render using Vello’s GPU-accelerated graphics backend
  • ▸Support for rendering to desktop (with winit) and Web (via wasm + WebGPU when available)
  • ▸Dual-license (Apache-2.0 OR MIT), friendly for open‑source and commercial use. :contentReference[oaicite:5]{index=5}
  • ▸Integration with Vello scene graph APIs for further drawing or layering

Origin & Creator

Velato is an open‑source Rust crate maintained by the community; its repository shows incremental releases (e.g. version 0.6.0 in May 2025) targeting Lottie compatibility. :contentReference[oaicite:4]{index=4}

Industrial Note

Velato is used by Rust developers who need to integrate high-quality vector animations (from Lottie) into Rust applications or games - especially those built on Vello - without relying on JavaScript or external runtime, giving full control and performance in a system-level language.

More Velato Typing Exercises

Hello World in VelatoSimple Addition in VelatoLoop Example in VelatoConditional Branch in VelatoString Output in VelatoMultiplication in VelatoDecrement Example in VelatoArray Handling in VelatoFunction Call Example in Velato

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher