Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 626 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 626 Bytes

Note: There is a bug in PixiJS v8.1.0 that prevents GradientFactory from correctly rendering into a texture. Make sure you have applied this patch to your PixiJS build: pixijs/pixijs#10486

@pixi-essentials/gradients

This package exports a GradientFactory that generates color gradient textures. The implementation wraps around the Canvas API currently, and is not as performant as a WebGL shader would provide.

Installation 📦

npm install @pixi-essentials/gradients

Usage 📄

import { GradientFactory } from '@pixi-essentials/gradients';