Skip to content

Instantly share code, notes, and snippets.

View FelipeNSantos's full-sized avatar

Felipe Santos FelipeNSantos

View GitHub Profile
@the-lost-explorer
the-lost-explorer / BezierCurve.py
Created September 26, 2019 17:02
A shabby implementation of Bezier Curves using tkinter.
import math
import tkinter as tk
from tkinter import ttk
from tkinter import Scale
from tkinter import HORIZONTAL
import numpy as np
LARGE_FONT = ("Verdana", 12)
class BezierCurveApp(tk.Tk):
@lee1043
lee1043 / taylorDiagram.py
Created August 21, 2019 20:55 — forked from ycopin/taylorDiagram.py
Taylor diagram for python/matplotlib.
#!/usr/bin/env python
# Copyright: This document has been placed in the public domain.
"""
Taylor diagram (Taylor, 2001) implementation.
Note: If you have found these software useful for your research, I would
appreciate an acknowledgment.
"""
@PM2Ring
PM2Ring / tk_bezier_track.py
Last active April 10, 2023 23:08
Cubic Bezier tracks with constant speed animation, using Tkinter
#!/usr/bin/env python3
''' Create a closed track from cubic Bezier curves, and animate a circle
following the track at constant speed.
https://en.wikipedia.org/wiki/B%C3%A9zier_curve#Cubic_B%C3%A9zier_curves
https://gist.github.com/PM2Ring/d6a19f5062b39467ac669a4fb4715779
Press the Add button to add black control dots to the Canvas. The first