cap / styles.py
ADXabhi's picture
Upload 7 files
e902a4a verified
# Style Definitions for ASS Subtitles
# Maps internal style names to ASS tag parameters
STYLES = {
"hormozi": {
"Fontname": "DejaVu Sans",
"Fontsize": 40,
"PrimaryColour": "&H00FFFF&",
"OutlineColour": "&H000000&",
"BackColour": "&H80000000&",
"Bold": -1,
"Italic": 0,
"BorderStyle": 1,
"Outline": 3.0,
"Shadow": 0,
"Alignment": 2,
"MarginL": 10,
"MarginR": 10,
"MarginV": 20,
# Word Level Animations
"active_anim": r"{\1c&H00FFFF&}{\fscx125\fscy125}", # Pop + Yellow
"inactive_anim": r"{\1c&HFFFFFF&}{\fscx100\fscy100}" # White + Normal
},
"netflix": {
"Fontname": "DejaVu Sans",
"Fontsize": 20,
"PrimaryColour": "&H1409E5&", # Red (BGR)
"OutlineColour": "&H000000&",
"BackColour": "&H80000000&",
"Bold": -1,
"Italic": 0,
"BorderStyle": 1,
"Outline": 0, # No border usually, maybe variable
"Shadow": 0,
"Alignment": 5,
"MarginL": 10,
"MarginR": 10,
"MarginV": 40,
"active_anim": r"{\1c&H1409E5&}",
"inactive_anim": r"{\1c&HFFFFFF&}"
},
"neon": {
"Fontname": "DejaVu Sans",
"Fontsize": 30,
"PrimaryColour": "&HFF00FF&", # Magenta
"OutlineColour": "&HFF00FF&", # Magenta Glow
"BackColour": "&H80000000&",
"Bold": -1,
"Italic": 0,
"BorderStyle": 1,
"Outline": 2.0,
"Shadow": 0,
"Alignment": 5,
"MarginL": 10,
"MarginR": 10,
"MarginV": 50,
# We simulate glow by using the blur tag in the Dialogue line
"active_anim": r"{\blur10\3c&HFF00FF&}",
"inactive_anim": r"{\blur0\3c&H000000&}"
}
}