Spaces:
Sleeping
Sleeping
| # app/core/animations/overlay_animations.py | |
| from pathlib import Path | |
| from typing import Dict | |
| def confetti(svg_path: Path, working_dir: Path, task_meta: Dict) -> Dict: | |
| scene_name = "Confetti" | |
| scene_code = f''' | |
| from manim import * | |
| class {scene_name}(Scene): | |
| def construct(self): | |
| # TODO: implement confetti using many small shapes with gravity-like animation | |
| self.wait(0.5) | |
| ''' | |
| return {"scene_name": scene_name, "scene_code": scene_code} | |
| def checkmark_tick(svg_path: Path, working_dir: Path, task_meta: Dict) -> Dict: | |
| scene_name = "CheckmarkTick" | |
| scene_code = f''' | |
| from manim import * | |
| class {scene_name}(Scene): | |
| def construct(self): | |
| # TODO: show checkmark animation | |
| self.wait(0.5) | |
| ''' | |
| return {"scene_name": scene_name, "scene_code": scene_code} | |