fix: fix typo spelling grammar

This commit is contained in:
slowy07 2021-08-07 22:25:26 +07:00
parent 31119b630e
commit 1e621e8278
14 changed files with 15 additions and 15 deletions

View file

@ -52,7 +52,7 @@ flag abbr function
``--finder`` Show the output file in finder ``--finder`` Show the output file in finder
``--config`` Guide for automatic configuration ``--config`` Guide for automatic configuration
``--file_name FILE_NAME`` Name for the movie or image file ``--file_name FILE_NAME`` Name for the movie or image file
``--start_at_animation_number START_AT_ANIMATION_NUMBER`` ``-n`` Start rendering not from the first animation, but from another, specified by its index. If you passin two comma separated values, e.g. "3,6", it will end the rendering at the second value. ``--start_at_animation_number START_AT_ANIMATION_NUMBER`` ``-n`` Start rendering not from the first animation, but from another, specified by its index. If you passing two comma separated values, e.g. "3,6", it will end the rendering at the second value.
``--resolution RESOLUTION`` ``-r`` Resolution, passed as "WxH", e.g. "1920x1080" ``--resolution RESOLUTION`` ``-r`` Resolution, passed as "WxH", e.g. "1920x1080"
``--frame_rate FRAME_RATE`` Frame rate, as an integer ``--frame_rate FRAME_RATE`` Frame rate, as an integer
``--color COLOR`` ``-c`` Background color ``--color COLOR`` ``-c`` Background color

View file

@ -187,7 +187,7 @@ TexTransformExample
# Passing in muliple arguments to Tex will result # Passing in muliple arguments to Tex will result
# in the same expression as if those arguments had # in the same expression as if those arguments had
# been joined together, except that the submobject # been joined together, except that the submobject
# heirarchy of the resulting mobject ensure that the # hierarchy of the resulting mobject ensure that the
# Tex mobject has a subject corresponding to # Tex mobject has a subject corresponding to
# each of these strings. For example, the Tex mobject # each of these strings. For example, the Tex mobject
# below will have 5 subjects, corresponding to the # below will have 5 subjects, corresponding to the

View file

@ -164,7 +164,7 @@ class TexTransformExample(Scene):
# Passing in muliple arguments to Tex will result # Passing in muliple arguments to Tex will result
# in the same expression as if those arguments had # in the same expression as if those arguments had
# been joined together, except that the submobject # been joined together, except that the submobject
# heirarchy of the resulting mobject ensure that the # hierarchy of the resulting mobject ensure that the
# Tex mobject has a subject corresponding to # Tex mobject has a subject corresponding to
# each of these strings. For example, the Tex mobject # each of these strings. For example, the Tex mobject
# below will have 5 subjects, corresponding to the # below will have 5 subjects, corresponding to the

View file

@ -44,7 +44,7 @@ class Transform(Animation):
self.check_target_mobject_validity() self.check_target_mobject_validity()
# Use a copy of target_mobject for the align_data_and_family # Use a copy of target_mobject for the align_data_and_family
# call so that the actual target_mobject stays # call so that the actual target_mobject stays
# preserved, since calling allign_data will potentailly # preserved, since calling allign_data will potentially
# change the structure of both arguments # change the structure of both arguments
self.target_copy = self.target_mobject.copy() self.target_copy = self.target_mobject.copy()
self.mobject.align_data_and_family(self.target_copy) self.mobject.align_data_and_family(self.target_copy)
@ -161,7 +161,7 @@ class ApplyMethod(Transform):
method is a method of Mobject, *args are arguments for method is a method of Mobject, *args are arguments for
that method. Key word arguments should be passed in that method. Key word arguments should be passed in
as the last arg, as a dict, since **kwargs is for as the last arg, as a dict, since **kwargs is for
configuration of the transform itslef configuration of the transform itself
Relies on the fact that mobject methods return the mobject Relies on the fact that mobject methods return the mobject
""" """

View file

@ -1445,7 +1445,7 @@ class Mobject(object):
return result return result
def check_data_alignment(self, array, data_key): def check_data_alignment(self, array, data_key):
# Makes sure that self.data[key] can be brodcast into # Makes sure that self.data[key] can be broadcast into
# the given array, meaning its length has to be either 1 # the given array, meaning its length has to be either 1
# or the length of the array # or the length of the array
d_len = len(self.data[data_key]) d_len = len(self.data[data_key])

View file

@ -23,7 +23,7 @@ def always(method, *args, **kwargs):
def f_always(method, *arg_generators, **kwargs): def f_always(method, *arg_generators, **kwargs):
""" """
More functional version of always, where instead More functional version of always, where instead
of taking in args, it takes in functions which ouput of taking in args, it takes in functions which output
the relevant arguments. the relevant arguments.
""" """
assert_is_mobject_method(method) assert_is_mobject_method(method)

View file

@ -47,7 +47,7 @@ class BackgroundRectangle(SurroundingRectangle):
fill_opacity=None, fill_opacity=None,
family=True family=True
): ):
# Unchangable style, except for fill_opacity # Unchangeable style, except for fill_opacity
VMobject.set_style_data( VMobject.set_style_data(
self, self,
stroke_color=BLACK, stroke_color=BLACK,

View file

@ -333,7 +333,7 @@ class DiscreteGraphScene(Scene):
x_coord_of = {root: 0} x_coord_of = {root: 0}
y_coord_of = {root: bottom} y_coord_of = {root: bottom}
# width to allocate to a given node, computed as # width to allocate to a given node, computed as
# the maxium number of decendents in a single generation, # the maximum number of decendents in a single generation,
# minus 1, multiplied by x_sep # minus 1, multiplied by x_sep
width_of = {} width_of = {}
for index in indices: for index in indices:

View file

@ -5,7 +5,7 @@ from manimlib.constants import *
from manimlib.mobject.mobject import Mobject from manimlib.mobject.mobject import Mobject
from manimlib.utils.iterables import adjacent_pairs from manimlib.utils.iterables import adjacent_pairs
# Warning: This is all now pretty depricated, and should not be expected to work # Warning: This is all now pretty deprecated, and should not be expected to work
class Region(Mobject): class Region(Mobject):

View file

@ -123,7 +123,7 @@ class Scene(object):
# Have the frame update after each command # Have the frame update after each command
shell.events.register('post_run_cell', lambda *a, **kw: self.update_frame()) shell.events.register('post_run_cell', lambda *a, **kw: self.update_frame())
# Use the locals of the caller as the local namespace # Use the locals of the caller as the local namespace
# once embeded, and add a few custom shortcuts # once embedded, and add a few custom shortcuts
local_ns = inspect.currentframe().f_back.f_locals local_ns = inspect.currentframe().f_back.f_locals
local_ns["touch"] = self.interact local_ns["touch"] = self.interact
for term in ("play", "wait", "add", "remove", "clear", "save_state", "restore"): for term in ("play", "wait", "add", "remove", "clear", "save_state", "restore"):

View file

@ -183,7 +183,7 @@ class SceneFileWriter(object):
'-s', f'{width}x{height}', # size of one frame '-s', f'{width}x{height}', # size of one frame
'-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 input comes from a pipe
'-vf', 'vflip', '-vf', 'vflip',
'-an', # Tells FFMPEG not to expect any audio '-an', # Tells FFMPEG not to expect any audio
'-loglevel', 'error', '-loglevel', 'error',

View file

@ -157,7 +157,7 @@ def get_smooth_cubic_bezier_handle_points(points):
l, u = 2, 1 l, u = 2, 1
# diag is a representation of the matrix in diagonal form # diag is a representation of the matrix in diagonal form
# See https://www.particleincell.com/2012/bezier-splines/ # See https://www.particleincell.com/2012/bezier-splines/
# for how to arive at these equations # for how to arrive at these equations
diag = np.zeros((l + u + 1, 2 * num_handles)) diag = np.zeros((l + u + 1, 2 * num_handles))
diag[0, 1::2] = -1 diag[0, 1::2] = -1
diag[0, 2::2] = 1 diag[0, 2::2] = 1

View file

@ -5,7 +5,7 @@ import numpy as np
def remove_list_redundancies(l): def remove_list_redundancies(l):
""" """
Used instead of list(set(l)) to maintain order Used instead of list(set(l)) to maintain order
Keeps the last occurance of each element Keeps the last occurrence of each element
""" """
reversed_result = [] reversed_result = []
used = set() used = set()

View file

@ -48,7 +48,7 @@ class Window(PygletWindow):
return tuple(map(int, custom_position.split(","))) return tuple(map(int, custom_position.split(",")))
# Alternatively, it might be specified with a string like # Alternatively, it might be specified with a string like
# UR, OO, DL, etc. specifiying what corner it should go to # UR, OO, DL, etc. specifying what corner it should go to
char_to_n = {"L": 0, "U": 0, "O": 1, "R": 2, "D": 2} char_to_n = {"L": 0, "U": 0, "O": 1, "R": 2, "D": 2}
width_diff = monitor.width - window_width width_diff = monitor.width - window_width
height_diff = monitor.height - window_height height_diff = monitor.height - window_height