Introduction - If you have any usage issues, please Google them yourself
Using the knowledge of computer graphics, the 4 order B spline basis function is used, and the node vector is taken as [0,0,0,0,1/4,2/4,3/4,1,1,1,1].
First, draw the control polygon and draw the B spline curve by piecewise straight line segments.