Renamed SPACE_WIDTH and SPACE_HEIGHT to SPACE_X_RADIUS and SPACE_Y_RADIUS to be less confusing

This commit is contained in:
Grant Sanderson
2018-03-30 11:03:14 -07:00
parent 873fa49fbe
commit 55786e443d
98 changed files with 951 additions and 951 deletions

View File

@ -6,7 +6,7 @@ from mobject.tex_mobject import TexMobject
from scene import Scene
DEFAULT_COUNT_NUM_OFFSET = (SPACE_WIDTH - 1, SPACE_HEIGHT - 1, 0)
DEFAULT_COUNT_NUM_OFFSET = (SPACE_X_RADIUS - 1, SPACE_Y_RADIUS - 1, 0)
DEFAULT_COUNT_RUN_TIME = 5.0
class CountingScene(Scene):
@ -87,8 +87,8 @@ class CountingScene(Scene):
class PascalsTriangle(VMobject):
CONFIG = {
"nrows" : 7,
"height" : 2*SPACE_HEIGHT - 1,
"width" : 1.5*SPACE_WIDTH,
"height" : 2*SPACE_Y_RADIUS - 1,
"width" : 1.5*SPACE_X_RADIUS,
"portion_to_fill" : 0.7
}
def generate_points(self):