Is there a better way to make the fill of a polygon transparent, rather than using stipple? Heres an example:
import tkinter as tk
class GUI:
def __init__(self, master, x, y):
self.master = master
self.canvas = tk.Canvas(master, width=x, height=y)
self.canvas.pack()
self.canvas.create_polygon(10, 10, 10, 20, 200, 300, 250, 150, 10, 10,
outline="green", fill="blue")
self.canvas.create_polygon(100, 10, 10, 40, 50, 300, 250, 400, 100, 10,
outline="green", fill="red", stipple="gray50")
x, y = 500, 500
root = tk.Tk()
gui = GUI(root, x, y)
root.mainloop()
I would like to make the transparency of the red polygon realistic, like any software given the alpha parameter.
