JuliaAttic / Color.jl

Basic color manipulation utilities.
Other
47 stars 21 forks source link

Colour deficiency simulation functions for Arrays #60

Closed ghost closed 10 years ago

ghost commented 10 years ago

A minor contribution that I found handy when working with colormaps in IJulia.

coveralls commented 10 years ago

Coverage Status

Coverage remained the same when pulling 5cc52f96abd74a4b4f2c53da828a8e745de349a2 on ninjin:nin/blindforarrays into 7cb794c224c665dcdbdf0435341227d2e1877af3 on JuliaLang:master.

jiahao commented 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
...
ghost commented 10 years ago

@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.

coveralls commented 10 years ago

Coverage Status

Coverage remained the same when pulling b06baf826f6018a668b294137f148636c11f1222 on ninjin:nin/blindforarrays into 7cb794c224c665dcdbdf0435341227d2e1877af3 on JuliaLang:master.