mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 22:57:44 +00:00
Beginning ode project
This commit is contained in:
parent
ac3740145a
commit
4ec63f22ee
2 changed files with 56 additions and 0 deletions
6
active_projects/ode/all_part1_scenes.py
Normal file
6
active_projects/ode/all_part1_scenes.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# from active_projects.ode.part1 import *
|
||||
|
||||
OUTPUT_DIRECTORY = "ode/part1"
|
||||
ALL_SCENE_CLASSES = [
|
||||
|
||||
]
|
||||
50
active_projects/ode/part1/pendulum.py
Normal file
50
active_projects/ode/part1/pendulum.py
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
from big_ol_pile_of_manim_imports import *
|
||||
|
||||
|
||||
class Pendulum(VGroup):
|
||||
CONFIG = {
|
||||
"length": 3,
|
||||
"gravity": 9.8,
|
||||
"weight_diameter": 0.5,
|
||||
"rod_style": {
|
||||
"stroke_width": 2,
|
||||
"stroke_color": LIGHT_GREY,
|
||||
},
|
||||
"weight_style": {
|
||||
"stroke_width": 0,
|
||||
"fill_opacity": 1,
|
||||
"fill_color": LIGHT_GREY,
|
||||
"sheen_direction": UL,
|
||||
"sheen_factor": 0.5,
|
||||
}
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super().__init__(**kwargs)
|
||||
self.create_rod()
|
||||
|
||||
def create_rod(self):
|
||||
pass
|
||||
|
||||
def create_weight(self):
|
||||
pass
|
||||
|
||||
def get_theta(self):
|
||||
pass
|
||||
|
||||
def set_theta(self):
|
||||
pass
|
||||
|
||||
def get_angular_velocity(self):
|
||||
pass
|
||||
|
||||
def set_angular_velocity(self):
|
||||
pass
|
||||
|
||||
def get_fixed_point(self):
|
||||
pass
|
||||
|
||||
|
||||
class PendulumTest(Scene):
|
||||
def construct(self):
|
||||
pass
|
||||
Loading…
Add table
Reference in a new issue