Set module curve points via blueprint

Hello,

Is it possible to set curve points in a module via blueprints? For example I have a patricle emitter with the color over life module and I would like to make it go from red to orange, from blue to cyan, and so on… via blueprint.
Is this in any way achievable or would I have create an actual function that calculates the color at every frame and sets it?

Thanks.