Skip to content

BlobTheKat/ultraviolet

Repository files navigation

Ultraviolet

Fast lightweight 2D graphics library powered by webgl2

Why use ultraviolet?

  1. Custom GLSL shaders
  2. Lightweight (21.7KiB, 7.4KiB gzipped)
  3. Fast bulk-drawing
  4. Make use of GPU features such as stencil buffer, texture formats, VAOs, ...

Features:

  • Textures & texture arrays
  • Many texture formats including integer textures
  • Texture customization (wrap mode, filtering, mipmaps)
  • Render to other targets or textures
  • Read pixels from a target or canvas
  • Canvas2D-like transformations (.translate(), .scale(), .rotate(), ...)
  • GLSL Shaders
  • Meshes, allowing fast bulk-drawing of thousands or millions of sprites
  • Custom-use sprite properties (for use within shaders)
  • Mesh export/importing
  • Stencil buffer access for clipping
  • Customizable blend algorithms
  • 8 textures and 6 uniforms per draw operation
  • Configurable sprite geometry

Getting started

Coming soon!

Documentation

Coming soon!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published