Sideway
output.to from Sideway
Draft for Information Only

Content

Frame
 Class ScreenRectangle(Rectangle)
  Example
   Code
   Output
 Class FullScreenRectangle(ScreenRectangle)
  Example
   Code
   Output
 Class FullScreenFadeRectangle(FullScreenRectangle)
  Example
   Code
   Output
 Class PictureInPictureFrame(Rectangle)
  Example
   Code
   Output

Frame

The defined frame VMobject in frame.py
  • Class ScreenRectangle(Rectangle)
  • Class FullScreenRectangle(ScreenRectangle)
  • Class FullScreenFadeRectangle(FullScreenRectangle)
  • Class PictureInPictureFrame(Rectangle)

Class ScreenRectangle(Rectangle)

ScreenRectangle is used to generate a screen rectangle for given parameters, aspect_ratio, and height

Example

Code

# folder/file: tut/manim_mobject_screenrectangle_001a.py

from manimlib.scene.scene import Scene
from manimlib.mobject.frame import ScreenRectangle

class manim_mobject_screenrectangle_001a(Scene): 
    def construct(self):
        num=ScreenRectangle()
        self.add(num)
        self.wait(2)
        self.add(ScreenRectangle(color="#FF3300",aspect_ratio=1,height=1).rotate(0.5))
        self.wait(2)
        self.add(ScreenRectangle(height=2,aspect_ratio=9/16).rotate(1.5708))
        self.wait(2)
        self.add(ScreenRectangle(height=3).rotate(1.5708))
        self.wait(2)

Output

image

Class FullScreenRectangle(ScreenRectangle)

FullScreenRectangle is used to generate a full screen rectangel for given parameters, height

Example

Code

# folder/file: tut/manim_mobject_fullscreenrectangle_001a.py

from manimlib.scene.scene import Scene
from manimlib.mobject.frame import FullScreenRectangle

class manim_mobject_fullscreenrectangle_001a(Scene): 
    def construct(self):
        num=FullScreenRectangle()
        self.add(num)
        self.wait(2)
        self.add(FullScreenRectangle(color="#FF3300",aspect_ratio=1,height=1).rotate(0.5))
        self.wait(2)
        self.add(FullScreenRectangle(height=2,aspect_ratio=9/16).rotate(1.5708))
        self.wait(2)
        self.add(FullScreenRectangle(height=3).rotate(1.5708))
        self.wait(2)

Output

image

Class FullScreenFadeRectangle(FullScreenRectangle)

FullScreenFadeRectangle is used to generate a full screen fade rectangle for given parameters.

Example

Code

# folder/file: tut/manim_mobject_fullscreenFaderectangle_001a.py

from manimlib.scene.scene import Scene
from manimlib.mobject.frame import FullScreenFadeRectangle

class manim_mobject_fullscreenFaderectangle_001a(Scene): 
    def construct(self):
        num=FullScreenFadeRectangle()
        self.add(num)
        self.wait(2)
        self.add(FullScreenFadeRectangle(fill_color="#FF3300",aspect_ratio=1,height=1).rotate(0.5))
        self.wait(2)
        self.add(FullScreenFadeRectangle(height=2,fill_color="#0000FF").rotate(1.5708))
        self.wait(2)
        self.add(FullScreenFadeRectangle(height=3,fill_color="#003300",fill_opacity=0.2).rotate(1.5708))
        self.wait(2)

Output

image

Class PictureInPictureFrame(Rectangle)

PictureInPictureFrame is used to generate a picture in picture frame for given parameters.

Example

Code

# folder/file: tut/manim_mobject_pictureinpictureframe_001a.py

from manimlib.scene.scene import Scene
from manimlib.mobject.frame import PictureInPictureFrame

class manim_mobject_pictureinpictureframe_001a(Scene): 
    def construct(self):
        num=PictureInPictureFrame()
        self.add(num)
        self.wait(2)
        self.add(PictureInPictureFrame(color="#FF3300",aspect_ratio=1).rotate(0.5))
        self.wait(2)
        self.add(PictureInPictureFrame(aspect_ratio=9/16).rotate(1.5708))
        self.wait(2)
        self.add(PictureInPictureFrame(color="#FF3300").rotate(1.5708))
        self.wait(2)

Output

image

©sideway

ID: 200402902 Last Updated: 4/29/2020 Revision: 0


Latest Updated LinksValid XHTML 1.0 Transitional Valid CSS!Nu Html Checker Firefox53 Chromena IExplorerna
IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 8

Culture

Chinese 1097

English 339

Reference 79

Computer

Hardware 249

Software

Application 213

Digitization 32

Latex 52

Manim 205

KB 1

Numeric 19

Programming

Web 289

Unicode 504

HTML 66

CSS 65

SVG 46

ASP.NET 270

OS 429

DeskTop 7

Python 72

Knowledge

Mathematics

Formulas 8

Algebra 84

Number Theory 206

Trigonometry 31

Geometry 34

Coordinate Geometry 2

Calculus 67

Complex Analysis 21

Engineering

Tables 8

Mechanical

Mechanics 1

Rigid Bodies

Statics 92

Dynamics 37

Fluid 5

Fluid Kinematics 5

Control

Process Control 1

Acoustics 19

FiniteElement 2

Natural Sciences

Matter 1

Electric 27

Biology 1

Geography 1


Copyright © 2000-2024 Sideway . All rights reserved Disclaimers last modified on 06 September 2019