Act.js
Create Adobe Color Table (.act) files using Uint8Array, Blob API and FileReader API.
Install / Use
/learn @zenozeng/Act.jsREADME
act.js
Create Adobe Color Table (.act) files using Uint8Array, Blob API and FileReader API.
Usage
Browser
A UMD version can be found at dist/.
Browserify
npm install act-js --save
var generate = require('act-js');
var colors = [[255, 0, 0], [0, 255, 0], [0, 0, 255]];
generate(colors, function(err, dataURL) {
console.log(dataURL);
});
FAQ
Use .act in GIMP?
In Palettes, select a palette and right click it, choose import palette.
Ref
-
https://github.com/bdon/actpalette
-
https://developer.mozilla.org/en-US/docs/Web/API/Blob
-
http://stackoverflow.com/questions/12539058/is-there-a-default-mime-type
-
https://forums.adobe.com/message/2205681#2205681
