Skip to content

Create or read an Adobe Color File

Notifications You must be signed in to change notification settings

Maxime117/node-aco

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node Adobe Color File Writer

Given an array of color info objects like

[{
    color: "#FF9900",
    name: "Awesome Orange"
}]

Write an Adobe Color file (.aco) to the given path.

var aco = require('aco');

var colorsArray = [
    {
        color: "#FF9900",
        name: "Awesome Orange"
    }
];

aco.make('AcoFilePath.aco', colorsArray, function(err, aco) {
    console.log("aco callback");
    aco.on('finish', function() {
        console.log('aco write finished', aco.path);
    });
});

The callback gets the writeable stream for the .aco file, with .end() having been already called. It is possible to listen for the finish event as well as get the path. The .aco file can then be used in Photoshop and imported to the swatches panel.

Credit to Larry Tesler for explaining the spec

About

Create or read an Adobe Color File

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%