MCPcopy Create free account
hub / github.com/pyscript/pyscript / animate

Function animate

core/tests/manual/issue-2302/main.py:254–264  ·  view source on GitHub ↗
(now=0.0)

Source from the content-addressed store, hash-verified

252
253@create_proxy
254def animate(now=0.0):
255 data = analyser.getFrequencyData()#.to_py() in Pyodide
256 audio_now = player.running_time
257 bs.update(data, audio_now)
258
259 if grid_width:
260 offset = -((20 * audio_now) % grid_width)
261 scale_lines(offset=offset)
262
263 renderer.render(scene, camera)
264 stats_gl.update()
265
266def reset():
267 global scroll_offset

Callers

nothing calls this directly

Calls 2

scale_linesFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected