Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Add more examples

Naveen47ef49428f36
diff --git a/example_scenes/panT.py b/example_scenes/panT.py
index b4b68c1ff..f372e3088 100644
--- a/example_scenes/panT.py
+++ b/example_scenes/panT.py
@@ -5,13 +5,21 @@ class Demo(Scene):
'font' : 'sans-serif'
}
def construct(self):
- text = PangoText('見 角 言 谷 豆 豕 豸 貝 赤 走 足 身 車 辛 辰 辵 邑 酉 釆 里!')
+ text = PangoText('見 角 言 谷 辛 辰 辵 邑 酉 釆 里!')
self.play(Write(text))
self.wait(2)
mess=PangoText('multi-language',style=ITALIC)
self.play(Transform(text,mess))
self.clear()
- #arb=PangoText('नमस्ते',font='sans-serif')
- arb=PangoText("Здравствуйте")
+ #arb=PangoText('hi नमस्ते.',font='sans-serif')
+ print(len("नमस्ते"))
+ arb=PangoText("Здравствуйте मस नम म ",font='sans-serif')
self.play(Write(arb))
- self.wait(4)
\ No newline at end of file
+ self.wait(4)
+class Demo1(Scene):
+ CONFIG = {
+ 'font' : 'sans-serif'
+ }
+ def construct(self):
+ text = PangoText('Hello, world!', t2c={'world':BLUE})
+ self.play(Write(text))
\ No newline at end of file