mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Small changes to LinearTransformationScene
This commit is contained in:
parent
f2cd7004d7
commit
d0b2d8ee5e
1 changed files with 4 additions and 1 deletions
|
@ -287,6 +287,9 @@ class LinearTransformationScene(VectorScene):
|
|||
},
|
||||
"background_plane_kwargs": {
|
||||
"color": GREY,
|
||||
"axis_config": {
|
||||
"stroke_color": LIGHT_GREY,
|
||||
},
|
||||
"number_line_config": {
|
||||
"color": GREY,
|
||||
},
|
||||
|
@ -358,7 +361,7 @@ class LinearTransformationScene(VectorScene):
|
|||
self.add_special_mobjects(self.moving_mobjects, mobject)
|
||||
|
||||
def get_unit_square(self, color=YELLOW, opacity=0.3, stroke_width=3):
|
||||
square = Rectangle(
|
||||
square = self.square = Rectangle(
|
||||
color=color,
|
||||
width=self.plane.get_x_unit_size(),
|
||||
height=self.plane.get_y_unit_size(),
|
||||
|
|
Loading…
Add table
Reference in a new issue