node-dmx / dmx

DMX controller library for node.js
MIT License
297 stars 96 forks source link

Added filter function to animation class #97

Closed DoctorMcKay closed 4 years ago

DoctorMcKay commented 4 years ago

Per discussion in IRC earlier today with @wiedi, this PR adds a filter property to the options object passed to the DMX.Animation() constructor, allowing for consumer applications to view and modify channel values set by animations in real-time. This is useful particularly in cases where you want to scale the value of all channels based on some multiplier, e.g. a master brightness fader or a blackout button.

wiedi commented 4 years ago

Thanks!