JSPM

@pixi-essentials/gradients

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 994
  • Score
    100M100P100Q113123F
  • License MIT

Generates textures with color gradients

Package Exports

  • @pixi-essentials/gradients
  • @pixi-essentials/gradients/lib/gradients.es.js
  • @pixi-essentials/gradients/lib/gradients.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@pixi-essentials/gradients) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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: https://github.com/pixijs/pixijs/pull/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';