Git Product home page Git Product logo

rbg2ase's Introduction

rgb2ase

RGB array to ASE file converter.

Disclaimer

Please note the core code was for this package was written in 2012 and was tested with a version of Adobe Illustrator that was available at that time. The author cannot guarantee that it still works properly today.

Installation

pnpm add rgb2ase

Usage

  • const converter = new Rgb2Ase(); - create a new converter instance

  • createAse() accepts an object with shape { title: string, data: number[][] }, and a size (default 12).

  • getAse() (optional) to get the contents of the ASE buffer.

  • writeAse() - writes a new file using the title passed into the quantizeData method. writeAse accepts an options object: { path: string }).

In full

import Rgb2Ase from 'rgb2ase';

const converter = new Rgb2Ase();

converter.createAse(data, 12)
converter.writeAse({ path: './' });

const ase = converter.getAse();

Example

This runs an example of the code using the data in ./data, and adding an output file (Mordred.ase) to the ./example/ase folder, creating one if it doesn't exist.

cd example
node index.js

rbg2ase's People

Contributors

andywillis avatar

Watchers

 avatar  avatar  avatar

rbg2ase's Issues

Less restrictive license

Have you considered a less restrictive license for rgb2ase? Iā€™d like to try your library in an app Iā€™m making, but I want to follow all your licensing rules.

While I am not charging money, I do occasionally receive donations and am technically a company as a freelancer. So, I do not believe I can use the code under cc-by-nc-sa. Have you considered licensing under just cc-by or something more permissive like mit?

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.