Small move to DEFAULT_PIXEL_HEIGHT, etc. In theory these values shouldn't matter anymore, but it's nice to have some default there for the definition of Camera

This commit is contained in:
Grant Sanderson 2021-01-02 22:38:07 -08:00
parent 6da1836f02
commit 32b76bf448
2 changed files with 5 additions and 7 deletions

View file

@ -132,7 +132,7 @@ class Camera(object):
"frame_config": {},
"pixel_height": DEFAULT_PIXEL_HEIGHT,
"pixel_width": DEFAULT_PIXEL_WIDTH,
"frame_rate": DEFAULT_FRAME_RATE, # TODO, move this elsewhere
"frame_rate": DEFAULT_FRAME_RATE,
# Note: frame height and width will be resized to match
# the pixel aspect ratio
"background_color": BLACK,

View file

@ -7,6 +7,10 @@ FRAME_WIDTH = FRAME_HEIGHT * ASPECT_RATIO
FRAME_Y_RADIUS = FRAME_HEIGHT / 2
FRAME_X_RADIUS = FRAME_WIDTH / 2
DEFAULT_PIXEL_HEIGHT = 1080
DEFAULT_PIXEL_WIDTH = 1920
DEFAULT_FRAME_RATE = 30
SMALL_BUFF = 0.1
MED_SMALL_BUFF = 0.25
MED_LARGE_BUFF = 0.5
@ -94,14 +98,8 @@ UHD_QUALITY_CAMERA_CONFIG = {
"frame_rate": 60,
}
# TOOD, remove these
DEFAULT_PIXEL_HEIGHT = UHD_QUALITY_CAMERA_CONFIG["pixel_height"]
DEFAULT_PIXEL_WIDTH = UHD_QUALITY_CAMERA_CONFIG["pixel_width"]
DEFAULT_FRAME_RATE = 60
DEFAULT_STROKE_WIDTH = 4
# Colors
COLOR_MAP = {
"DARK_BLUE": "#236B8E",