-
Notifications
You must be signed in to change notification settings - Fork 36
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
Tutorial implementing own color type #217
Comments
In fact, if you don't have to think about interactions with other color types, implementing own color types is exactly the same as Julia's general struct definition. Lines 5 to 17 in bd31741
The IMO, it might be more useful to create a separate package as an add-on, rather than adding new types into ColorTypes.jl. I am thinking of creating a new package CMYKColorTypes.jl, which does not include color management features. Perhaps it should be a living tutorial. |
I'm also interested in the HWB colors, which will be part of CSS Color Module Level 4. One simple color model which is "actually used" is YCoCg. I think YCoCg qualifies as a member of ColorTypes.jl, but I'm not even going to actively introduce it because it's too simple. 😄 |
I am not sure if this belongs in the issues section, but it would be nice if there was a tutorial for implementing your own color type in Julia. There is some suggestions in the readme.md but it seems too intimidating to do so, at least to me. This is more of a general question for implementing own types in Julia in general, and understanding the mechanics of Julia's type system.
The text was updated successfully, but these errors were encountered: