Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colour deficiency simulation functions for Arrays #60

Merged
merged 1 commit into from Aug 27, 2014
Merged

Colour deficiency simulation functions for Arrays #60

merged 1 commit into from Aug 27, 2014

Conversation

ghost
Copy link

@ghost ghost commented Aug 27, 2014

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

@coveralls
Copy link

Coverage Status

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

@jiahao
Copy link
Contributor

jiahao commented Aug 27, 2014

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
Copy link
Author

ghost commented Aug 27, 2014

@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
Copy link

Coverage Status

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

For completeness and the additional convenience when working with `colormaps`.
jiahao added a commit that referenced this pull request Aug 27, 2014
Colour deficiency simulation functions for Arrays
@jiahao jiahao merged commit 3d0c322 into JuliaAttic:master Aug 27, 2014
@ghost ghost deleted the nin/blindforarrays branch August 27, 2014 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants