Skip to content

About

OHZI Components — a collection of reusable classes to build high-quality WebGL & WebGPU experiences faster.

Resources

Stars

0 stars

Watchers

3 watching

Forks

Repository files navigation

OHZI Components

OHZI Components is a library that collects a bunch of standalone Classes to help build high-quality WebGL and WebGPU experiences fast.

This library is a complement of ohzi-core.

Documentation

  • Audio — AudioManager plays, fades and mutes the ohzi-core audio clips, and AudioUnlocker resumes the AudioContext after the first gesture.
  • FPSCounter — Frames per second, averaged over the last 5 seconds.
  • LottieAnimation — Loads a Lottie animation with lottie-web's SVG renderer.
  • Modal — AbstractModalComponent and ModalState: one overlay that shows one of several states.
  • PerformanceController — Disables optional features and adjusts the DPR to keep the framerate up.
  • RequestManager — JSON HTTP requests sent from a Web Worker.
  • Scroll — Smoothed scroll value from wheel, touch and drag, with free, snapping and step modes.
  • TextScrambler — Scramble-reveal effect for an element's text.
  • UICollisionLayer — Tracks whether the pointer is over the DOM UI and writes it to input.over_ui.

License

MIT

About

OHZI Components — a collection of reusable classes to build high-quality WebGL & WebGPU experiences faster.

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages