mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Cramer thumbnail
This commit is contained in:
parent
870cfbad0c
commit
afed6902c8
1 changed files with 16 additions and 0 deletions
|
@ -2142,3 +2142,19 @@ class AreYouPausingAndPondering(TeacherStudentsScene):
|
|||
look_at_arg=self.screen
|
||||
)
|
||||
self.wait(6)
|
||||
|
||||
|
||||
class Thumbnail(TransformingAreasYCoord):
|
||||
def construct(self):
|
||||
self.matrix = np.array(self.matrix)
|
||||
vect = self.add_vector([1, 1.5], color=MAROON_B)
|
||||
ip = self.get_input_parallelogram(vect)
|
||||
self.add_transformable_mobject(ip)
|
||||
self.apply_transposed_matrix([[2, -0.5], [1, 2]])
|
||||
|
||||
words = TextMobject("Cramer's", "rule")
|
||||
words.scale_to_fit_width(7)
|
||||
# words.add_background_rectangle_to_parts()
|
||||
words.add_background_rectangle()
|
||||
words.to_edge(UP)
|
||||
self.add(words)
|
||||
|
|
Loading…
Add table
Reference in a new issue