A Bezier curve is a type of continuous or polynomial curve that is widely used in computer graphics, animation, and…