| | |
| | | # Demo NiceGUI vs Tk |
| | | |
| | | Eine kleine Demonstration von Plot-Möglichkeiten in NiceGUI via HTML-Canvas und Tk Canvas |
| | | |
| | | ## Install |
| | | |
| | | ```bash |
| | |
| | | |
| | | ## Run |
| | | |
| | | In beide Programm kann man 4 Punkten einer (Kubischen) Bezier-Kurve mit Mouse-Klicks bestimmen, |
| | | danach wird eine Kurve angezeigt. |
| | | |
| | | ### Tk |
| | | |
| | | ```bash |
| | |
| | | Module related to bezier curve |
| | | """ |
| | | def make_cubic_bezier(control_points: [(float, float)], n: int = 10) -> [(float, float)]: |
| | | """" |
| | | r"""" |
| | | Interpolate a Bezier-curve by split it into segments of lines (=polyline). |
| | | A Bezier-Curve is defined by |
| | | |