LerpCIELUV - Styxling/Feather GitHub Wiki

This module creates a function that interpolates between two Color3 values in CIELUV color space. In simple terms, it smoothly blends two colors based on a parameter t (from 0 to 1).

What It Does

  • Color Interpolation:
    Converts two colors to CIELUV space and blends them according to the value of t.

  • Usage:
    First, create a lerp function by providing two colors. Then, call the returned function with a value for t to get the interpolated color.

Usage Example

local Directory = require(ServerStorage.Directory.MainModule)
local LerpCIELUV = Directory("_replicated", "LerpCIELUV")

-- Create a lerp function between two colors
local lerpFunction = LerpCIELUV(Color3.new(1, 0, 0), Color3.new(0, 0, 1))

-- Get the blended color at t = 0.5 (halfway)
local midColor = lerpFunction(0.5)
print(midColor)  -- Outputs the interpolated Color3 value