Changed constructor parameter colorFn to options object.
Check if opts is defined.
Merge pull request #6 from CarsonF/add-constr-params