/runic

Playground for 2D Path Rasterization

Primary LanguageRust

Runic

Runic is a playground for testing out different path rendering approaches with focus on anti-aliasing quality on low dpi displays.

Usage

Keys (General)

  • S - Toggle colorspace (linear RGB <-> sRGB)
cargo run --example furu --release

Keys

  • F1 - Coarse rasterizer (box filter)
  • F2 - Distance rasterizer (box filter)
  • F3 - Distance rasterizer (radial box filter)
  • F4 - Coarse rasterizer (1x1 Heaviside filter)
  • F5 - Coarse rasterizer (8x8 Heaviside filter) (B for Tent filter, N for Box filter)
  • F6 - Analytic rasterizer (box filter)
  • 1 - Default scene (two triangles)
  • 2 - Debug scene
  • 3 - Gradient (colorspace test)

Skia Reference

cargo run --example filters --release

Keys

  • B - Tent filter
  • N - Box filter