render_config module
- class render_config.RendererConfig(color_map: Dict[str, Tuple[int, int, int]] = <factory>, bbox_side: float = 51.5, offset_x: float = 70, offset_y: float = 60, circle_width: float = 7, text_size: int = 30, text_position: Tuple[float, float] = (15, 980), text_color: Tuple[int, int, int] = (255, 255, 255), font: str = 'fonts/MilkyNice.ttf')
Bases:
objectClass for keeping the configuration parameters of the renderer Default values are set for the following board layouts: 2016, 2017, 2019
- Parameters
color_map (Dict[str, Tuple[str, str]]) – Color map to use for the moves
bbox_side (float) – Side of the bounding box for the circle that highlights a move
offset_x (float) – x-axis distance between consecutive holds
offset_y (float) – x-axis distance between consecutive holds
circle_width (float) – Width of the circle that highlights a move in pixels
text_size (int) – Size of the text to write in pixels
text_position (Tuple[float, float]) – Position of the text to write
text_color (Tuple[int, int, int]) – Color of the text to write
font (str) – Font to use for the text. Tbe font refered here must be installed on the system or located under fonts
- bbox_side: float = 51.5
- circle_width: float = 7
- color_map: Dict[str, Tuple[int, int, int]]
- font: str = 'fonts/MilkyNice.ttf'
- offset_x: float = 70
- offset_y: float = 60
- text_color: Tuple[int, int, int] = (255, 255, 255)
- text_position: Tuple[float, float] = (15, 980)
- text_size: int = 30