Skip to content

Instantly share code, notes, and snippets.

View sebdelsol's full-sized avatar

sebdelsol

  • Montpellier, France
  • 06:26 (UTC +01:00)
View GitHub Profile
@honix
honix / round_rect.py
Created January 3, 2016 20:59
Tkinter canvas round rect
from tkinter import *
from math import sin, cos
master = Tk()
c = Canvas(master, width=230, height=230)
c.pack()
def create_good_rectangle(c, x1, y1, x2, y2, feather, res=5, color='black'):
points = []