Anonymous user
Image noise: Difference between revisions
improved python example from 10 to 23 fps
(more improvements! 140 FPS to 185 FPS!) |
(improved python example from 10 to 23 fps) |
||
Line 291:
{{libheader|PIL}}
Max
<lang python>import Tkinter
Line 298:
import time
#colors = [(0,0,0),(255,255,255)]
size = (320,240)
pixels = size[0] * size[1]
Line 316:
def loop(self):
self.ta = time.time()
self.img.putdata([(255,255,255) if random.
self.pimg = ImageTk.PhotoImage(self.img)
self.label["image"] = self.pimg
|