mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 05:24:22 +08:00
@ -230,16 +230,16 @@ class SceneFileWriter(object):
|
|||||||
'-pix_fmt', 'rgba',
|
'-pix_fmt', 'rgba',
|
||||||
'-r', str(fps), # frames per second
|
'-r', str(fps), # frames per second
|
||||||
'-i', '-', # The imput comes from a pipe
|
'-i', '-', # The imput comes from a pipe
|
||||||
'-c:v', 'h264_nvenc',
|
|
||||||
'-an', # Tells FFMPEG not to expect any audio
|
'-an', # Tells FFMPEG not to expect any audio
|
||||||
'-loglevel', 'error',
|
'-loglevel', 'error',
|
||||||
]
|
]
|
||||||
|
# TODO, the test for a transparent background should not be based on
|
||||||
|
# the file extension.
|
||||||
if self.movie_file_extension == ".mov":
|
if self.movie_file_extension == ".mov":
|
||||||
# This is if the background of the exported video
|
# This is if the background of the exported
|
||||||
# should be transparent.
|
# video should be transparent.
|
||||||
command += [
|
command += [
|
||||||
'-vcodec', 'qtrle',
|
'-vcodec', 'qtrle',
|
||||||
# '-vcodec', 'png',
|
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
command += [
|
command += [
|
||||||
|
@ -4912,13 +4912,18 @@ class Thumbnail(SpiralScene):
|
|||||||
dots.set_fill([TEAL_E, TEAL_A])
|
dots.set_fill([TEAL_E, TEAL_A])
|
||||||
dots.set_stroke(BLACK, 1)
|
dots.set_stroke(BLACK, 1)
|
||||||
|
|
||||||
label = VGroup(
|
label = TextMobject(
|
||||||
TextMobject("$(p, p)$ for all primes $p$, in polar"),
|
"($p$, $p$) for all primes $p$,\\\\",
|
||||||
|
"in polar coordinates",
|
||||||
|
tex_to_color_map={
|
||||||
|
"$p$": YELLOW,
|
||||||
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
label.scale(2)
|
label.scale(2)
|
||||||
label.set_stroke(BLACK, 10, background=True)
|
label.set_stroke(BLACK, 10, background=True)
|
||||||
label.add_background_rectangle()
|
label.add_background_rectangle_to_submobjects()
|
||||||
label.to_corner(DL)
|
label.to_corner(DL, MED_LARGE_BUFF)
|
||||||
|
|
||||||
self.add(dots)
|
self.add(dots)
|
||||||
self.add(label)
|
self.add(label)
|
Reference in New Issue
Block a user