aeffect

1.0.5 • Public • Published

AEffect

Build status

AEffect is a tool to generate effect subtitles (.ass) files for JavaScript programmers.

This project is now under development.

Getting Started

Installation

npm install aeffect

Compatibility

Because that functions related to rendering are based on Win32 API, AEffect can only support Windows platform now.

Importing to your script

const AEffect = require("aeffect");

Examples

Adding blur effect to all dialogs with "Default" style

    let AE = new AEffect();
    AE.loadFromFile("path_to_your_ass_file");
    AE.select({
        "style": "Default"
    }).addEffect([
        new Blur(2)
    ])

    console.log(AE.build());

Syllables fade in

AE.loadFromFile("path_to_file");
let allDialogs = AE.select();
allDialogs.splitIntoSyllables(TimePoint.SyllableStart, TimePoint.LineEnd).forEachDialog((dialog) => {
    dialog.addEffect([
        new Blur(20),
        new Animation(dialog.lineStart, dialog.lineStart + dialog.duration, new Blur(0))
    ]);
});
allDialogs.comment();
console.log(AE.build())

More examples and complete API documentation will be available soon.

Contributing

Setting up development environment

git clone https://github.com/Last-Order/AEffect
cd ./AEffect
npm install
npm install -g typescript # skip if typescript is already installed

Starting watching source files

tsc

Running Unit Tests

npm run test

Dependencies (1)

Dev Dependencies (8)

Package Sidebar

Install

npm i aeffect

Weekly Downloads

2

Version

1.0.5

License

Apache

Last publish

Collaborators

  • eridanussora