These documents are written in TeX; To compile it
> pdflatex main.tex
the graphs are made by manim a python lib
> manim Class.py -s
Then changing background color using imagemagic
> convert Test.png -transparent black -fill white -opaque none result.png