Color format / value when setting effect properties?

I am trying to set the properties for the Tint effect. Specifically:

Map Black To
Map White To

Which are Colors in the UI panel. What format do I specify the colors? When I print out the defaults they give 0 and 1.

I have tried passing an array of floats mapping RGB to 0 to 1, but im getting Illegal Parameter type errors.

Basically, what format is a RGB color passed to parameter for an effect?

Looking around it looks like the format should be an array:

[0.23232, 0.323232, 0.54354, 1.0]

representing RGBA, but im still getting an error when i try to set.

Here is my code which works for int / floats but not colors:

const setParam = async(trackItem, componentName, paramName, value) => {

    const project = await app.Project.getActiveProject()

    let param = await getParam(trackItem, componentName, paramName)


    let supported = await param.areKeyframesSupported()
    console.log("key frames supported", supported)
    //let v = await param.getStartValue()
    //console.log(v)

    let keyframe = await param.createKeyframe(value)

    execute(() => {
        let action = param.createSetValueAction(keyframe);
        return [action]
    }, project)
}

To set color for effect parameter like this would require using an color object we’d like to introduce in our next release. Unfortunately this is not available at UXP at this point.

Apologies for inconvenience, and thanks for the feedbacks!