You can clone with
Error handling is currently minimal or non-existent. For example, if you accidentally pass something that isn't a Number to fadeToRGB, something throws the following error:
Terminate called after throwing an instance of "jsexception"
Node shouldn't crash this wildly in this event, and the error should be catchable.
For the purposes of typechecking/casting, what type should the on parameter to blink1.serverDown and the position parameter to the patternLine methods be?
The on parameter should have a type of boolean for blink1.serverDown.
The position parameter should have a type of integer and a range of 0 to 11 for patternLine
I'm guessing the play parameter for blink1.play should be a boolean.
Add unit testing as per @sandeepmistry's request, issue #5.
- validate parameters (issue #5)