GithubHelp home page GithubHelp logo

icewind1991 / node-dxt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexkirsz/node-dxt

0.0 3.0 0.0 150 KB

Bindings for the squish DXT compression/decompression library

Python 0.40% JavaScript 0.91% Perl 1.03% Makefile 4.80% Prolog 0.53% C++ 90.37% C 1.95%

node-dxt's Introduction

node-dxt

Node.JS bindings for the squish DXT compression/decompression library.

$ npm install dxt

dxt.compress(input, width, height [, flags])

Compress input buffer. Returns a buffer.

dxt.decompress(input, width, height [, flags])

Decompress input buffer. Returns a buffer.

flags

dxt.{
  // COMPRESSION/DECOMPRESSION METHODS
  kDxt1,
  kDxt3,
  kDxt5,

  // SUPPLEMENTARY COMPRESSION FLAGS
  kColourIterativeClusterFit, // Use a very slow but very high quality colour compressor.
  kColourClusterFit,          // Use a slow but high quality colour compressor (the default).
  kColourRangeFit,            // Use a fast but low quality colour compressor.

  kColourMetricPerceptual,    // Use a perceptual metric for colour error (the default).
  kColourMetricUniform,       // Use a uniform metric for colour error.

  kWeightColourByAlpha        // Weight the colour by alpha during cluster fit (disabled by default).
}

node-dxt's People

Contributors

alexkirsz avatar icewind1991 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.