Spaces:
Sleeping
Sleeping
| # app/core/animations/infographic_animations.py | |
| from pathlib import Path | |
| from typing import Dict | |
| def bar_chart_grow(svg_path: Path, working_dir: Path, task_meta: Dict) -> Dict: | |
| scene_name = "BarChartGrow" | |
| scene_code = f''' | |
| from manim import * | |
| class {scene_name}(Scene): | |
| def construct(self): | |
| # TODO: build bars and animate heights 0->value | |
| self.wait(0.5) | |
| ''' | |
| return {"scene_name": scene_name, "scene_code": scene_code} | |
| def number_count(svg_path: Path, working_dir: Path, task_meta: Dict) -> Dict: | |
| scene_name = "NumberCount" | |
| scene_code = f''' | |
| from manim import * | |
| class {scene_name}(Scene): | |
| def construct(self): | |
| # TODO: animate number counting | |
| self.wait(0.5) | |
| ''' | |
| return {"scene_name": scene_name, "scene_code": scene_code} | |