INNER CODE UNIT · C#

delta

endlesstravel/Love2dCS · csharp_src/Love.Color.cs:119

            float delta = max - min;
            float hue;

            if (r == max)
                hue = (g - b) / delta;
            else if (g == max)
                hue = (b - r) / delta + 2f;
            else
                hue = (r - g) / delta + 4f;

            hue *= 60f;
            if (hue < 0f)
                hue += 360f;

            return hue;
        }

        public float GetSaturation()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…