File size: 2,534 Bytes
dc00adb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# ScreenRectangle

Qualified name: `manim.mobject.frame.ScreenRectangle`

### *class* ScreenRectangle(aspect_ratio=1.7777777777777777, height=4, \*\*kwargs)

Bases: [`Rectangle`](manim.mobject.geometry.polygram.Rectangle.md#manim.mobject.geometry.polygram.Rectangle)

### Methods

### Attributes

| `animate`                                                           | Used to animate the application of any method of `self`.               |
|---------------------------------------------------------------------|------------------------------------------------------------------------|
| `animation_overrides`                                               |                                                                        |
| [`aspect_ratio`](#manim.mobject.frame.ScreenRectangle.aspect_ratio) | The aspect ratio.                                                      |
| `color`                                                             |                                                                        |
| `depth`                                                             | The depth of the mobject.                                              |
| `fill_color`                                                        | If there are multiple colors (for gradient) this returns the first one |
| `height`                                                            | The height of the mobject.                                             |
| `n_points_per_curve`                                                |                                                                        |
| `sheen_factor`                                                      |                                                                        |
| `stroke_color`                                                      |                                                                        |
| `width`                                                             | The width of the mobject.                                              |
* **Parameters:**
  * **aspect_ratio** (*float*)
  * **height** (*float*)
  * **kwargs** (*Any*)

#### \_original_\_init_\_(aspect_ratio=1.7777777777777777, height=4, \*\*kwargs)

Initialize self.  See help(type(self)) for accurate signature.

* **Parameters:**
  * **aspect_ratio** (*float*)
  * **height** (*float*)
  * **kwargs** (*Any*)
* **Return type:**
  None

#### *property* aspect_ratio *: float*

The aspect ratio.

When set, the width is stretched to accommodate
the new aspect ratio.