tinysvg is a pure-Lua SVG reader and renderer for Garry's Mod that renders vector graphics at any size without resolution loss.

Stars

16

7-day growth

No data

Forks

0

Open issues

0

License

No data

Last updated

2026-07-14

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It brings true vector rendering to GMod with a single file, no dependencies, and robust SVG support including paths, gradients, transforms, and CSS, plus managed icon sets for easy UI integration.

Who it is for

  • Garry's Mod addon developers
  • UI designers creating HUDs and VGUI panels
  • Modders who need crisp icons at multiple scales
  • Developers embedding SVG graphics in GMod projects

Use cases

  • Drawing crisp icons in HUD hooks and VGUI Paint methods
  • Rendering scalable UI elements that stay sharp under any panel size
  • Managing a set of inline SVG glyphs with automatic caching and fade-in prewarming
  • Converting SVG strings or files into renderable materials for 3D2D surfaces

Strengths

  • Single client-side file with zero external dependencies
  • True vector rendering with per-size-bucket caching and pooled render targets for GPU memory efficiency
  • Broad SVG support: paths, basic shapes, gradients, transforms, CSS, named colors, and units
  • Managed IconSet layer simplifies handling named icon glyphs with lazy parsing and prewarming

Considerations

  • Does not support text, images, patterns, masks, filters, clip paths, or animation/scripting
  • Group opacity is approximated (multiplied into children) and may differ where siblings overlap
  • Non-uniform scaling distorts stroke widths slightly using an average scale factor

README quick start

Quick start

Description

Pure-Lua SVG parser & vector renderer for Garry's Mod. No dependencies, crisp at any scale.

Related repositories

Similar projects matched by category, topics, and programming language.

koplugin-swipe-animation
koplugin-swipe-animation GitHub avatar

Swipe_Animation.koplugin

A software patch for KOReader that adds smooth page-turn animations with customizable settings to e-ink devices lacking native hardware support.

Lua
65
rv178
rv178 GitHub avatar

txm.nvim

A Neovim plugin that provides inline LaTeX preview as virtual text via the txm renderer.

Lua
30
alp1x
alp1x GitHub avatar

um-custom-plate

A FiveM script that allows players to add custom text, images, and color to vehicle license plates using DUI rendering, with database persistence and automatic restoration.

Lua
10