diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 28fa13e3..df72e3b6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,3 +15,7 @@ repos: - id: isort name: isort (python) args: ["--profile", "black"] +- repo: https://github.com/psf/black + rev: 22.8.0 + hooks: + - id: black diff --git a/README.md b/README.md index 101a4972..93981d4f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +![Manim Slides Logo](https://raw.githubusercontent.com/jeertmans/manim-slides/main/static/logo.png) + [![Latest Release][pypi-version-badge]][pypi-version-url] [![Python version][pypi-python-version-badge]][pypi-version-url] ![PyPI - Downloads](https://img.shields.io/pypi/dm/manim-slides) diff --git a/static/logo.png b/static/logo.png new file mode 100644 index 00000000..9ee70bd4 Binary files /dev/null and b/static/logo.png differ diff --git a/static/logo.py b/static/logo.py new file mode 100644 index 00000000..eabcb075 --- /dev/null +++ b/static/logo.py @@ -0,0 +1,30 @@ +from manim import * + + +class ManimSlidesLogo(Scene): + def construct(self): + tex_template = TexTemplate() + tex_template.add_to_preamble(r"\usepackage{fontawesome5}") + self.camera.background_color = "#ffffff" + logo_green = "#87c2a5" + logo_blue = "#525893" + logo_red = "#e07a5f" + logo_black = "#343434" + ds_m = MathTex(r"\mathbb{M}", fill_color=logo_black).scale(7) + ds_m.shift(2.25 * LEFT + 1.5 * UP) + slides = MathTex(r"\mathbb{S}\text{lides}", fill_color=logo_black).scale(4) + slides.next_to(ds_m, DOWN) + slides.shift(DOWN) + book = Tex( + r"\faStepBackward\faStepForward", + fill_color=logo_black, + tex_template=tex_template, + ).scale(4) + book.next_to(ds_m, LEFT) + book.shift(LEFT + 0.5 * DOWN) + circle = Circle(color=logo_green, fill_opacity=1).shift(LEFT) + square = Square(color=logo_blue, fill_opacity=1).shift(UP) + triangle = Triangle(color=logo_red, fill_opacity=1).shift(RIGHT) + logo = VGroup(triangle, square, circle, ds_m, slides, book) # order matters + logo.move_to(ORIGIN) + self.add(logo)