/es6-texgen-lib

A node-based procedural texture generation library written in ECMAScript 6.

Primary LanguageJavaScript

es6-texgen-lib

A node-based procedural texture generation library written in ECMAScript 6.

How to build

Type the following commands into your shell:

npm install
npm run webpack

How to run

Type the following command into your shell, open a browser and access http://localhost:8080:

npm start

Demo

http://jdiemke.github.io/es6-texgen-lib/

Plugin Development

You can extend the texture generation library by writing your own plugins. All you have to to in order to extend the library with new operators is to subclass the AbsractOperator class:

import * as APEX from './lib/es6-texgen-lib.js';

export class MyOperator extends APEX.AbstractOperator {

    process() {
        this.texture.fill(new APEX.Color(0.0, 1.0, 0.0));
    }

}