본문 바로가기

분류 전체보기

(284)
[02-4]Multilingual setting in LaText Korean character Append '\usepackage{kotex}' in the manimlib/tex_template.tex file. Chinese character Chinese character package is already included in the manimlib/template.tex file as below. If you couldn't display Chinese character, check whether the 'ctex' package is in the template.tex file. And edit configuration in 'constants.py' TEX_USE_CTEX = True # Support Chinese The above Chinese char..
python의 for 루프 설명하기 파이썬의 for 루프를 설명하기 위한 애니메이션입니다. 설명하기 위한 for 루프를 사용한 파이썬 코드는 1에서 100까지 합을 구한는 코드 sum = 0 for i in range(1,101,1): sum = sum + i 애니메이션의 핵심은, 변수 i와 sum의 값이 for 루프를 돌면서 어떻게 변하는 지를 잘 보여주는 것. 이를 위해서 i값과 sum값이 차례로 위 쪽으로 이동하면서 변하는 객체를 만들어서 처리해야겠습니다. 사다리 모양이어서 객체 이름은 VarLadder로. `변수를 처리하는 사다리` 정도의 의미 .^^ 작성된 VarLadder 클래스에 대한 코드는 아래와 같습니다. class VarLadder(VGroup): CONFIG = { "rect_cnt": 3, "decimal_scale"..
[02-3]Using the Manim in the new directory If you want to make a movie using Manim in a directory other than the 'C:/dev/manim' directory installed in the previous chapter, you can do the following. The reason why you want to use a different folder is, you may need to modify the Manim library code by yourself when making a video, so leave the original library at 'C:/dev/manim', and you can edit the library in another directory. 1. Create..
[02-2]Download and Install the Manim package Install Manim package 1. Download Manim package from here: https://github.com/3b1b/manim 3b1b/manim Animation engine for explanatory math videos. Contribute to 3b1b/manim development by creating an account on GitHub. github.com 2. unzip downloaded zip file into the directory you want to use. Manim library dosen't need to install it but only unzip the package is enough to use it. Let's suppose yo..
[02-1]Basic environment configuration and required library installation Manim can be installed not only on Windows, but also on Linux and Mac, but here we will introduce the installation method only when using Windows10. Basic Environment for this lecture OS: Windows 10 (or Windows 7) Python: Python 3 (If you're not installed Python in your PC, please visit Python site and intall it) I'm using Python 3.7.7 but the latest version is 3.8.3 now (2020.5.31). It's possib..
[02]Building a development environment To use Mimim, you need to install some required libraries and Mimim package. Since the file to be downloaded is a bit large (especially Miktex, a library for inputting formulas), the entire download and installation will take about 30 minutes to an hour. [02-1]Basic environment configuration and required library installation [02-2]Download and Install the Manim package [02-3]Using the Manim in t..
[01]Introduction to Manim Manim is a Python library that allows you to create graphs and animations used in math and science that are difficult to produce with ordinary video production tools. The famous Math YouTube channel 3Blue1Brown is making all the animations with this `Manim` library. You can definitely see what you can do with Manim and see what's amazing about it by watching the video below explaining the Fourie..
[코세라 강좌]4주차 - 실습 horse와 human을 구분하는 실습. import os import zipfile import matplotlib.pyplot as plt import matplotlib.image as mpimg import tensorflow as tf #0. download the zip file # https://storage.googleapis.com/laurencemoroney-blog.appspot.com/horse-or-human.zip #1. unzip def unzip(): local_zip = 'c:/tmp/horse-or-human.zip' zip_ref = zipfile.ZipFile(local_zip, 'r') zip_ref.extractall('c:/tmp/horse-or-human') z..
[코세라 강좌]3주차 - 이론(2/2) How to work: Convolution 참조 동영상: Convolutional Neural Networks (by Endrew Ng)
[49] Update Animation class UpdateFromFunc class def update_from_func(self): dot = Dot().to_edge(LEFT) label = TextMobject("Hello").next_to(dot,UP) def update_func(mob): mob.next_to(dot,UP) self.play( dot.to_edge,RIGHT, UpdateFromFunc(label, update_func), run_time=5, ) def update_from_func2(self): dot = Dot().to_edge(LEFT) label = TextMobject("Hello").next_to(dot,UP) def update_func(mob): mob.next_to(dot, UP) x = dot.get_c..