Skip to content

Commit

Permalink
Merge pull request 3b1b#777 from 3b1b/hyperdarts
Browse files Browse the repository at this point in the history
Hyperdarts
  • Loading branch information
3b1b authored Oct 28, 2019
2 parents ec9dd06 + 4df666e commit 0e1da5e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
8 changes: 4 additions & 4 deletions manimlib/scene/scene_file_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,16 +230,16 @@ def open_movie_pipe(self):
'-pix_fmt', 'rgba',
'-r', str(fps), # frames per second
'-i', '-', # The imput comes from a pipe
'-c:v', 'h264_nvenc',
'-an', # Tells FFMPEG not to expect any audio
'-loglevel', 'error',
]
# TODO, the test for a transparent background should not be based on
# the file extension.
if self.movie_file_extension == ".mov":
# This is if the background of the exported video
# should be transparent.
# This is if the background of the exported
# video should be transparent.
command += [
'-vcodec', 'qtrle',
# '-vcodec', 'png',
]
else:
command += [
Expand Down
13 changes: 9 additions & 4 deletions active_projects/spirals.py → old_projects/spirals.py
Original file line number Diff line number Diff line change
Expand Up @@ -4912,13 +4912,18 @@ def add_dots(self):
dots.set_fill([TEAL_E, TEAL_A])
dots.set_stroke(BLACK, 1)

label = VGroup(
TextMobject("$(p, p)$ for all primes $p$, in polar"),
label = TextMobject(
"($p$, $p$) for all primes $p$,\\\\",
"in polar coordinates",
tex_to_color_map={
"$p$": YELLOW,
},
)

label.scale(2)
label.set_stroke(BLACK, 10, background=True)
label.add_background_rectangle()
label.to_corner(DL)
label.add_background_rectangle_to_submobjects()
label.to_corner(DL, MED_LARGE_BUFF)

self.add(dots)
self.add(label)
Expand Down

0 comments on commit 0e1da5e

Please sign in to comment.