Socket
Book a DemoInstallSign in
Socket

@kawarp/core

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kawarp/core

Fluid animated background renderer using WebGL, Kawase blur, and domain warping

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

@kawarp/core

Fluid animated background renderer using WebGL, Kawase blur, and domain warping. Creates effects similar to Apple Music's album art visualization.

Installation

npm install @kawarp/core

Usage

import { Kawarp } from '@kawarp/core';

const canvas = document.querySelector('canvas');
const kawarp = new Kawarp(canvas);

await kawarp.loadImage('path/to/image.jpg');
kawarp.start();

Options

OptionTypeDefaultDescription
warpIntensitynumber1.0Warp effect strength (0-1)
blurPassesnumber8Kawase blur passes (1-40)
animationSpeednumber1.0Animation speed multiplier
transitionDurationnumber1000Crossfade duration in ms
saturationnumber1.5Color saturation multiplier
tintColor[r, g, b][0.16, 0.16, 0.24]Tint color for dark areas (0-1)
tintIntensitynumber0.15Tint effect strength (0-1)
ditheringnumber0.008Dithering strength (0-0.1)
scalenumber1.0Overall zoom level of the effect (0.01-4)

Methods

  • loadImage(url) - Load image from URL
  • loadBlob(blob) - Load from Blob or File
  • loadGradient(colors, angle?) - Load gradient as source
  • start() - Start animation
  • stop() - Stop animation
  • resize() - Update canvas dimensions
  • dispose() - Clean up WebGL resources

License

AGPL-3.0

Built by Better Lyrics

Keywords

webgl

FAQs

Package last updated on 29 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts