mirror of
https://github.com/3b1b/manim.git
synced 2025-07-29 21:12:35 +08:00
Nearly done with ecf
This commit is contained in:
17
constants.py
17
constants.py
@ -1,4 +1,5 @@
|
||||
import os
|
||||
import numpy as np
|
||||
|
||||
|
||||
GENERALLY_BUFF_POINTS = True
|
||||
@ -22,18 +23,26 @@ DEFAULT_POINT_DENSITY_1D = 150
|
||||
#TODO, Make sure these are not needd
|
||||
DEFAULT_HEIGHT = PRODUCTION_QUALITY_DISPLAY_CONFIG["height"]
|
||||
DEFAULT_WIDTH = PRODUCTION_QUALITY_DISPLAY_CONFIG["width"]
|
||||
SPACE_HEIGHT = 4.0
|
||||
SPACE_WIDTH = SPACE_HEIGHT * DEFAULT_WIDTH / DEFAULT_HEIGHT
|
||||
|
||||
|
||||
#All in seconds
|
||||
DEFAULT_FRAME_DURATION = 0.04
|
||||
DEFAULT_ANIMATION_RUN_TIME = 3.0
|
||||
DEFAULT_TRANSFORM_RUN_TIME = 1.0
|
||||
DEFAULT_DITHER_TIME = 1.0
|
||||
|
||||
|
||||
DEFAULT_NUM_STARS = 1000
|
||||
|
||||
SPACE_HEIGHT = 4.0
|
||||
SPACE_WIDTH = SPACE_HEIGHT * DEFAULT_WIDTH / DEFAULT_HEIGHT
|
||||
ORIGIN = (0, 0, 0)
|
||||
|
||||
ORIGIN = np.array(( 0, 0, 0))
|
||||
UP = np.array(( 0, 1, 0))
|
||||
DOWN = np.array(( 0,-1, 0))
|
||||
RIGHT = np.array(( 1, 0, 0))
|
||||
LEFT = np.array((-1, 0, 0))
|
||||
IN = np.array(( 0, 0, 1))
|
||||
OUT = np.array(( 0, 0,-1))
|
||||
|
||||
THIS_DIR = os.path.dirname(os.path.realpath(__file__))
|
||||
FILE_DIR = os.path.join(THIS_DIR, "files")
|
||||
|
Reference in New Issue
Block a user