src/main/java/weathfold/partixel/api/PColor.java
/**
     * Lerp the color in RGBA space.
     */
Lerp the color in RGBA space.
Lerp the color in RGBA space .
public static PColor lerp(PColor a, PColor b, float t, PColor result) {
        if (result == null) {
            result = new PColor(0, 0, 0, 0);
        }
        float u = 1 - t;
        result.a = u * a.a + t * b.a;
        result.r = u * a.r + t * b.r;
        result.g = u * a.g + t * b.g;
        result.b = u * a.b + t * b.b;
        return result;
    }
public static PColor lerp ( PColor a , PColor b , float t , PColor result ) { if ( result == null ) { result = new PColor ( 0 , 0 , 0 , 0 ) ; } float u = 1 - t ; result . a = u * a . a + t * b . a ; result . r = u * a . r + t * b . r ; result . g = u * a . g + t * b . g ; result . b = u * a . b + t * b . b ; return result ; }
Lerp the color in RGBA space.
Lerp the color in RGBA space .