t-mat / HsluvUnity

C# implementation of HSLuv (rev.4) for Unity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HSLuv-Unity

This is a C# implementation of HSLuv rev.4 for Unity.

Note that there's an official repository of generic C# implementation. https://github.com/hsluv/hsluv-csharp

Using HSLuv-Unity

Put Assets/Hsluv/Runtime/Hsluv.cs into your project. It contains the following standard HSLuv functions.

namespace Hsluv {
    public static class Hsluv {
        public static Vector3 HsluvToRgb(Vector3 v);
        public static Vector3 RgbToHsluv(Vector3 v);
        public static Vector3 HpluvToRgb(Vector3 v);
        public static Vector3 RgbToHpluv(Vector3 v);
    }
}

See Assets/Hsluv/Samples~/ for details of other utility functions.

About

C# implementation of HSLuv (rev.4) for Unity

License:MIT License


Languages

Language:C# 100.0%