Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # b_wave.py
- from PIL import Image, ImageTk, ImageDraw
- from Tkinter import *
- import PIL
- import math
- z = 0
- ttt = []
- xy = {}
- if 1:
- incr = (360.0/790)
- while z < 360:
- s = math.cos(math.radians(z))*56+56
- xy[len(xy)] = min(255,int(s))
- z += incr
- t = [xy[z] for z in range(len(xy))]
- ttt.extend(t)
- 0
- ccc = ttt[:]
- 0
- for z in ccc:
- print '|'+'|'*z
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement