Programming (165) 썸네일형 리스트형 [04-5] Move to relative position(next_to) In the previous page, we looked at the 'to_move', 'to_edge' and 'to_corner' method to send an object to the promised position, or absolute position. From this page, we will look at the 'next_to' and 'shift' methods that move around the object based on an object. next_to manimlib.mobject.Mobject.next_to( mobject_or_point, direction=RIGHT, buff=DEFAULT_MOBJECT_TO_MOBJECT_BUFFER, aligned_edge=ORIGI.. [04-4] Move to absolute position(to_corner) In the previous chapter, we looked at the to_edge that moves to the left/right/up/down direction of the screen. A similar method is to_corner. Move the object to the corner of the screen. For example, if you want to place your own logo on the bottom right of the screen when creating a video, you can say logo.to_corner(DR, buff=0.3). Here, the value of DR=DOWN+RIGHT points to the right side of th.. [04-3] Move to absolute position(to_edge) In the previous page, we learned about 'move_to' method, and it was a method that moves object directly to a specified point or another object's position. The 'to_edge' method moves the object from the current position toward the end of the screen edge. For example, 'object.to_edge(LEFT)' moves the object from its current position to the left end edge. to_edge manimlib.mobject.Mobject.to_edge(ed.. [04-2] Move to absolute position(move_to) As we saw in the previous page, Manim can acess the screen position with (x,y,0) coordinates. x has a value between [-7.1, 7.1] and y has a value between [-4.0, 4.0] (x,y) coordinates can't be expressed with only one decimal place. You can use up to the number of decimal places the float variable can represent, such as (1.54, 0.981) The method to move an object to the coordinates positon on the .. [04-1]Coordinate System Manim expresses a specific position on the screen with the combination of (x,y,z), with the screen as the x-axis and the vertical as the y-axis and z is zero. The x-axis has a left end value of -7.1, the right end is 7.1, and the y axis has -4.0 at the bottom and 4.0 at the top. The total frame height value is defined as 'FRAME_HEIGHT' and frame width is defined as 'FRAME_WIDTH' in the manimlib/.. [04]Coordinate This chapter explains Coordinate System used in the Manim. [04-1]Coordinate System [04-2] Move to absolute position(move_to) [04-3] Move to absolute position(to_edge) [04-4] Move to absolute position(to_corner) [04-5] Move to relative position(next_to) [04-6] Move to relative position(shift) [04-7] Examples: Object moving animation [04-8]Examples: Text arranging Next: [04-1]Coordinate System Go .. [03-6] Manim Components : Coordinate, Mobject, Animation) The process of creating a video in Manim can be said, "Create an object and animate it in the screen coordinate system." For example, if you consider the case of displaying a text object called 'Hello Manim' with a FadeIn effect in the center of the screen, the concept of object, coordinate system, animation will come in contact with you. The objects, coordinate systems, and animations discussed.. [03-5] Manim execution arguments All execution arguments can be found by running 'python -m manim' in the Command Prompt window. C:\now\manim>python -m manim usage: manim.py [-h] [-p] [-w] [-s] [-l] [-m] [--high_quality] [-g] [-i] [-f] [-t] [-q] [-a] [-o FILE_NAME] [-n START_AT_ANIMATION_NUMBER] [-r RESOLUTION] [-c COLOR] [--sound] [--leave_progress_bars] [--media_dir MEDIA_DIR] [--video_dir VIDEO_DIR | --video_output_dir VIDEO.. [03-4] Watch samples (PyCham) There is an example file in the downloaded manim package. C:/now/manim/example_scenes.py Here is sample code to create multiple videos. In this page, I will show you how to run this example_scenes.py in PyCham. 1. If there is no file of example_scenes.py in the C:/now/manim folder, please copy & paste from the original directory extracted the files from the downloaded zip file. 2. Run PyCham pro.. [03-3] Explain about "Hello Manim" code In this page, I will explain about 'Hello Manim' code which is used in the previous page. from manimlib.imports import * class HelloManim(Scene): def construct(self): text=TextMobject("Hello Manim") self.play(Write(text)) self.wait() from manimlib.imports import * All of the packages used by Manim are declared in the manimlib/imports.py file. So, if you insert the phrase 'from manimlib.imports i.. 이전 1 ··· 7 8 9 10 11 12 13 ··· 17 다음