dxtn
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

dxtjs

Converts DXT compressed images to RGBA8888 and back.

Supported formats:

  • DXT1 / BC1
  • DXT3 / BC2
  • DXT5 / BC3

Example

const DXTN = require('dxtn');

// Get the RGBA8888 data from an array filled with DXT1 data
const rgba8888data = DXTN.decompressDXT1(width, height, rawDXTData);

// Convert RGBA8888 data to an DXT1 array
const dxtData = DXTN.compressDXT1(width, height, rawRGBA8888Data);

License

MIT

Package Sidebar

Install

npm i dxtn

Weekly Downloads

7

Version

1.0.0

License

MIT

Unpacked Size

19.1 kB

Total Files

8

Last publish

Collaborators

  • lordvonadel