Color ramp interpolations

In this documentation of Color Ramp

https://docs.blender.org/manual/en/3.6/interface/controls/templates/color_ramp.html

There is mentioning several methods of color stops interpolations.

B-Spline:

Uses a B-spline interpolation for the color stops.

Cardinal:

Uses a cardinal interpolation for the color stops.

Linear:

Uses a linear interpolation for the color stops.

Ease:

Uses an ease interpolation for the color stops.

Constant:

Uses a constant interpolation for the color stops.

The one I donā€™t understand is the ā€˜Cardinal interpolationā€™. Could anyone know what it means and possibly give me a link to some documentations regarding to the method please?

Hi,

https://blender.stackexchange.com/questions/42544/how-does-the-color-ramp-interpolation-work

1 Like

1 Like

Thank you ever so much for this link. It really helped me to realise what is this I am looking at. I was wondering so exactly what is the difference from ā€˜Cardinalā€™ to ā€˜Easeā€™ for instance? I messed with the Color Ramp here and this is ā€˜Easeā€™

and this is ā€˜Cardinalā€™

To be honest, though I saw some changes, I am clueless as to what and why the name ā€˜Cardinalā€™ actually. Do you know what is the difference? I know the difference might be in the way it is calculate the curveā€™s tangent, but why the name ā€˜Cardinalā€™?

1 Like

I did see this video about the interpolation and it explains quite well what the interpolation is doing:

but I am not sure why is the name ā€˜Cardinalā€™ (or ā€˜canonicalā€™ sometimes it is called).

Itā€™s given the name Cardinal because itā€™s a Cardinal math function, following the formula I listed above. Itā€™s nothing special, just the name of the formula :slight_smile:

1 Like

As Joseph has suggested above - is just the name of the function, nothing special besides it. If you really want to clarify that question, you could give it a try and ask Blenderā€™s developers itself. Hereā€™s the link anyway: https://developer.blender.org/

From what Iā€™ve found, the Cardinal name might have some ties with the Cardinality, see here.

Some useful info here as well.

At the end of the day, I think the name Cardinal was given because of the math function that somehow must be related to what it actually does with the colorsā€™ spectrum in Blender.

I can assume that the main difference between Ease and Cardinal is that Ease gives more smooth transition between multiple colors. The name itself is also used in CSS (Cascading Style Sheets), where, thanks to Ease, you are able to create smooth fade-in/fade-out animations with blocksā€™ appearances.

Iā€™m not sure, but maybe it could tell you something: https://developer.mozilla.org/en-US/docs/Web/CSS/transition

Hope that helps

Cheers,
Sergey

1 Like

@HoangDuyTran This is a rather complex topic. At its very basic these are different methods of value interpolation. Cardinal interpolation uses cardinal spline calculations to interpolate. And no the spline function itself is no cardinal function. Cardinality is rather about where splines tangents are calculated from. That are cardinal points. In the end its a simplified spline with just a tension parameter to control the smoothness or tangents lengths. It has advantages and drawbacks in relation to other splinetypes, but thats nothing we can disuss here in a couple of minutes. But opposing to a b spline the cardinal inperpolation always goes trough its controlpoints. Ease in and out on the other hand are even less they are just accelerating or decelerating functions between two points. They may look similar in some cases to cardinal spline interpolation but they are not.

2 Likes

By seeing this video (https://youtu.be/jvPPXbo87ds) and combining your message I understood why it was called ā€œCardinalā€ because as you have said itā€™s controlling points of the splines. Thank you for confirming this for me.