Module fastedit.Overlays
Classes
class Subtitles (subtitles: str)
-
Initialize subtitles.
Parameters
subtitles
:str
- Path to the file containing the subtitles.
Methods
def getPath(self)
-
Getting subtitles path.
Returns
str
- Path to the subtitles file.
class Text (text: str, x, y, start, end, fontSize: int = 18, fontColor: str = 'white')
-
Initialize text.
Parameters
text
:str
- String to display.
x
:int
orstr
- x-axis of the text.
y
:int
orstr
- y-axis of the text.
start
:int
orfloat
- Start timestamp to start displaying the text.
end
:int
orfloat
- End timestamp to end displaying the text.
fontSize
:int
, default=18
- Size of the text's font.
fontColor
:str
, default="white"
- Color of the text's font.
Methods
def getText(self)
-
Getting text with parameters.
Returns
dict
- Dictionnary containing the text and its parameters.