Closed ghost closed 10 years ago
You should be able to use julia's built-in @vectorize_1arg
macro for this purpose. I think the invocation is simply
@vectorize_1arg ColorValue protanopic
...
@jiahao: Indeed, you are correct! Thanks for teaching me about the macro. I have force-pushed a macro version of the PR to the branch.
A minor contribution that I found handy when working with
colormaps
in IJulia.