bezier2.py

Created by vnap0v

Created on July 01, 2025

2.27 KB

Bezier curves

This script defines functions which can draw Bezier curves using the kandinsky library

the function that does the actual drawing is:

draw_bezier(funct_bezier,points,Nsteps,col)
  • funct_bezier: either bezier1(), bezier2() or bezier3()
  • points is a list or tuple of (x,y)
  • Nsteps: number of points calculated, are connected with straight lines
  • col: color to draw


During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.