staghado commited on
Commit
fe0fedd
·
1 Parent(s): 20d121d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -86,12 +86,10 @@ def fourier_transform_drawing(input_image, frames, coefficients, img_size):
86
  t = time[i]
87
  center = (0, 0)
88
  theta = np.linspace(0, tau, 80)
89
- for c, fr in coefs:
90
  c = c * np.exp(1j*(fr * tau * t))
91
  r = np.linalg.norm(c)
92
  x, y = center[0] + r * np.cos(theta), center[1] + r * np.sin(theta)
93
- print(x)
94
- print(center)
95
  circle_lines[_].set_data([center[0], center[0] + np.real(c)], [center[1], center[1] + np.imag(c)])
96
  circles[_].set_data(x, y)
97
  center = (center[0] + np.real(c), center[1] + np.imag(c))
 
86
  t = time[i]
87
  center = (0, 0)
88
  theta = np.linspace(0, tau, 80)
89
+ for _, (c, fr) in enumerate(coefs):
90
  c = c * np.exp(1j*(fr * tau * t))
91
  r = np.linalg.norm(c)
92
  x, y = center[0] + r * np.cos(theta), center[1] + r * np.sin(theta)
 
 
93
  circle_lines[_].set_data([center[0], center[0] + np.real(c)], [center[1], center[1] + np.imag(c)])
94
  circles[_].set_data(x, y)
95
  center = (center[0] + np.real(c), center[1] + np.imag(c))