Starting into symmetry description for efvgt

This commit is contained in:
Grant Sanderson
2017-02-23 18:14:34 -08:00
parent ab2b6c2ba4
commit 1b0b54a393
2 changed files with 281 additions and 12 deletions

View File

@ -20,9 +20,9 @@ class PartyHat(SVGMobject):
"stroke_width" : 0,
"fill_opacity" : 1,
"propogate_style_to_family" : True,
"frills_color" : MAROON_B,
"frills_colors" : [MAROON_B, PURPLE],
"cone_color" : RED,
"dots_color" : YELLOW,
"dots_colors" : [YELLOW],
}
NUM_FRILLS = 7
NUM_DOTS = 6
@ -36,9 +36,9 @@ class PartyHat(SVGMobject):
self.cone = self[self.NUM_FRILLS]
self.dots = VGroup(*self[self.NUM_FRILLS+1:])
self.frills.highlight(self.frills_color)
self.frills.gradient_highlight(*self.frills_colors)
self.cone.highlight(self.cone_color)
self.dots.highlight(self.dots_color)
self.dots.gradient_highlight(*self.dots_colors)