 for the circuit python parsec today I wanted to talk about doing linear interpolation between two values so this is useful I'll show an example in a moment of doing some color mixing between two color values but in its purest form what you can see here in my little serial output here inside of Adam is I'm running this code on a little cutie pie here our P2040 cutie pie and if you look at that output what's happening is I'm essentially moving a slider between two values in a linear fashion so you can see I have the starting number it says reset and then 123 and then I'm sliding along in these little 0.05 increments up to an end value of 456 so these could be any values that you are sliding between and the way this works is you can see the most important part here is this little function called LERP which stands for linear interpolation and takes an argument of a beginning value and end value and then T is essentially the slider of where are we along this interpolation between the values then in the function when it gets called in this case it's being called with start begin at 123 and at 456 and the T initially is at 0 and that'll increment up what it returns is that beginning value plus where that slider is times the end value minus the beginning value so it's a really succinct little function but what that gives us here is it's printing out in this case the slider moving between those so if I look at a practical example of this I'm gonna unplug that and this is that little slider code that I have with the interpolation between in this case three colors but it's using that linear interpolation to go from one color to the next in R, G and B so it's having multiples of those happen at the same time and so that is how you can do some very simple linear interpolation inside of circuit Python and that is your circuit Python parsec