twolfson / gif-encoder

Streaming GIF encoder
The Unlicense
86 stars 10 forks source link

Allow for streaming write into `gif-encoder` #3

Open twolfson opened 10 years ago

twolfson commented 10 years ago

As inspired by the pngjs API, we should allow streaming in of rgba values. I am curious how we will make pipe out work sans methods though.

twolfson commented 10 years ago

We will probably change the API so it is impllicit over imperative. When we pipe, we will automatically add header and footer bytes.

There will still be an add frame method. There will also be a frame event for mutation before we mutate into the color pallette. In fact, we should have a color palette event and the ability to skip over recalculating that per frame (e.g. it never changed, we were just optimizing calculations in gifsockets)