1 2 3 4 5 6 7 8 9 10 11 12 13 14
| from manimlib import *
class Favicon(Scene): def construct(self): a = np.array([0., 2., 0.]) b = np.array([float(math.sqrt(3)), 1., 0.]) c = np.array([float(math.sqrt(3)), -1., 0.]) d = np.array([0., -2., 0.]) e = np.array([float(-math.sqrt(3)), -1., 0.]) f = np.array([float(-math.sqrt(3)), 1., 0.]) abcdef = Polygon(a, b, c, d, e, f).set_stroke(BLUE, width=25) ace = Polygon(a, c, e).set_stroke(BLUE, width=50) bdf = Polygon(b, d, f).set_stroke(BLUE, width=50) self.add(VGroup(abcdef, ace, bdf).scale(1.5))
|