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

Implement Deconstruct for color structs #81

Open
hillin opened this issue Aug 14, 2020 · 1 comment
Open

Implement Deconstruct for color structs #81

hillin opened this issue Aug 14, 2020 · 1 comment

Comments

@hillin
Copy link

hillin commented Aug 14, 2020

E.g.

    public static class LChuvColorExtensions
    {
        public static void Deconstruct(this LChuvColor lChuv, out double l, out double c, out double h)
        {
            l = lChuv.L;
            c = lChuv.C;
            h = lChuv.h;
        }
    }

Usage:

    LChuvColor lChuv = GetColor();
    var (l, c, h) = lChuv;
@tompazourek
Copy link
Owner

Good idea. I think I already noted this some time ago (#41), it's not too difficult to add, and a nice feature.

I hope to get around to this soon. I'd like to release v3 first with the new extensible conversion engine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants