Skip to content

Commit b199fc7

Browse files
committed
misc: create Manim Slides logo
1 parent 4b05f22 commit b199fc7

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ repos:
1515
- id: isort
1616
name: isort (python)
1717
args: ["--profile", "black"]
18+
- repo: https://github.com/psf/black
19+
rev: 22.8.0
20+
hooks:
21+
- id: black

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
![Manim Slides Logo](https://raw.githubusercontent.com/jeertmans/manim-slides/main/static/logo.png)
2+
13
[![Latest Release][pypi-version-badge]][pypi-version-url]
24
[![Python version][pypi-python-version-badge]][pypi-version-url]
35
![PyPI - Downloads](https://img.shields.io/pypi/dm/manim-slides)

static/logo.png

165 KB
Loading

static/logo.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
from manim import *
2+
3+
4+
class ManimSlidesLogo(Scene):
5+
def construct(self):
6+
tex_template = TexTemplate()
7+
tex_template.add_to_preamble(r"\usepackage{fontawesome5}")
8+
self.camera.background_color = "#ffffff"
9+
logo_green = "#87c2a5"
10+
logo_blue = "#525893"
11+
logo_red = "#e07a5f"
12+
logo_black = "#343434"
13+
ds_m = MathTex(r"\mathbb{M}", fill_color=logo_black).scale(7)
14+
ds_m.shift(2.25 * LEFT + 1.5 * UP)
15+
slides = MathTex(r"\mathbb{S}\text{lides}", fill_color=logo_black).scale(4)
16+
slides.next_to(ds_m, DOWN)
17+
slides.shift(DOWN)
18+
book = Tex(r"\faStepBackward\faStepForward", fill_color=logo_black, tex_template=tex_template).scale(4)
19+
book.next_to(ds_m, LEFT)
20+
book.shift(LEFT + .5 * DOWN)
21+
circle = Circle(color=logo_green, fill_opacity=1).shift(LEFT)
22+
square = Square(color=logo_blue, fill_opacity=1).shift(UP)
23+
triangle = Triangle(color=logo_red, fill_opacity=1).shift(RIGHT)
24+
logo = VGroup(triangle, square, circle, ds_m, slides, book) # order matters
25+
logo.move_to(ORIGIN)
26+
self.add(logo)

0 commit comments

Comments
 (0)