Closed mbostock closed 4 years ago
Closing in favor of #59.
This PR would have added overhead to the common path of color.toString by needing to string-compare the specified format and perform instanceof tests. By adding separate formatting methods, we also get better autocomplete and discovery.
Fixes #55.