Pendulum With Source Code, So Easy Code

Поділитися
Вставка
  • Опубліковано 4 гру 2023
  • Pendulum With Source Code, So Easy Code #pendulum

КОМЕНТАРІ • 34

  • @universal_realitiesr6156
    @universal_realitiesr6156 6 місяців тому +7

    so many pentagons
    edit: now squares
    edit: now triangles
    edit: i think im going crazy
    edit: its triangles again
    edit: the squares are back
    so many pentagons
    edit: now squares
    edit: now triangles
    edit: i think im going crazy
    edit: its triangles again
    edit: the squares are back
    so many pentagons
    edit: now squares
    edit: now triangles
    edit: i think im going crazy
    edit: its triangles again
    edit: the squares are back
    so many pentagons
    edit: now squares
    edit: now triangles
    edit: i think im going crazy
    edit: its triangles again
    edit: the squares are back
    so many pentagons
    edit: now squares
    edit: now triangles
    edit: i think im going crazy
    edit: its triangles again
    edit: the squares are back
    so many pentagons
    edit: now squares
    edit: now triangles
    edit: i think im going crazy
    edit: its triangles again
    edit: the squares are back
    so many pentagons
    edit: now squares
    edit: now triangles
    edit: i think im going crazy
    edit: its triangles again
    edit: the squares are back
    so many pentagons
    edit: now squares
    edit: now triangles
    edit: i think im going crazy
    edit: its triangles again
    edit: the squares are back
    so many pentagons
    edit: now squares
    edit: now triangles
    edit: i think im going crazy
    edit: its triangles again
    edit: the squares are back
    so many pentagons
    edit: now squares
    edit: now triangles
    edit: i think im going crazy
    edit: its triangles again
    edit: the squares are back
    wait i put it on loop-

  • @Coldy_Dartio
    @Coldy_Dartio 6 місяців тому +2

    3:00 you thought we wouldn't notice that you'll summon a demon 💀

  • @Wangbw
    @Wangbw  6 місяців тому +1

    in this video I shared the source code, which is ONLY a few lines, hopefully it is useful to you.
    from manim import *
    import numpy as np
    from os import system
    import math
    config.media_dir = "E:\PythonMedia\media"
    config.frame_width = 16#9#16
    config.frame_height = 9#16#
    config.frame_size = (3840,2160)#(720,1280)#(2160,3840)##(3840,2160)##(3840,2160)#(1280,720)#(1080, 1920) #(1920, 1080) 426 x , 640 x 360,
    config.frame_rate = 60
    config.background_color = BLACK
    class No32_purePendulum(Scene):
    frameIndex = 0
    frameIndexBook = []
    ballPlay = []
    fristFewCount = 15
    def construct(self):
    count = 120
    runTime = 300
    radius_ = np.linspace(0.5,4.2, count)
    circles = [Circle(radius=_, fill_opacity=0, stroke_width=1, stroke_color=BLACK).rotate(PI/2)
    for _ in radius_]
    positions = [np.linspace(0, count-_, runTime*config.frame_rate) for _ in range(count)]
    print(positions)
    print("------------")
    print(len(positions[0]))
    def update_collection():
    vg = VGroup()
    for index in range(count-1):
    if self.frameIndex= len(positions[0])-1:
    s_ = circles[index].point_from_proportion(0)
    e_ = circles[index + 1].point_from_proportion(0)
    else:
    s_ = round(positions[index][self.frameIndex], 3) - math.floor(positions[index][self.frameIndex])
    s_ = circles[index].point_from_proportion(s_)
    e_ = round(positions[index + 1][self.frameIndex], 3) - math.floor(
    positions[index + 1][self.frameIndex])
    e_ = circles[index + 1].point_from_proportion(e_)
    line = Line(start=s_, end=e_, stroke_color=WHITE, stroke_width=1)
    vg.add(line)
    #print(self.frameIndex)
    self.frameIndex = self.frameIndex + 1
    return vg
    objects = always_redraw(update_collection)
    self.add(objects)
    self.play(Create(Text("").move_to(LEFT * 100), run_time=(runTime*config.frame_rate + 3) / config.frame_rate,
    rate_func=linear)) #(runTime*config.frame_rate + 3) / config.frame_rate
    if __name__ == '__main__':
    system("manim -ql {} No32_purePendulum --disable_caching".format(__file__))

  • @RainySnowOfficial
    @RainySnowOfficial 2 місяці тому

    Finally a line with spiral effect

  • @soando7932
    @soando7932 4 місяці тому

    Math is really beautiful!!

  • @francisfournier3177
    @francisfournier3177 Місяць тому +2

    To manies sheet pubs before your videos ! What's a pity !!

  • @KevinLlanio
    @KevinLlanio Місяць тому

    2:30

  • @KikiQueen497
    @KikiQueen497 6 місяців тому

    That was amazing I'm impressed!!!!!

  • @Reconnize78
    @Reconnize78 Місяць тому

    Can i share your video?

  • @minxue1501
    @minxue1501 6 місяців тому

    So satisfying ❤❤

  • @-__V0ID__-
    @-__V0ID__- 6 місяців тому

    Please answer this, what app do you use for animating?

  • @elplianatodingbua5448
    @elplianatodingbua5448 6 місяців тому

    #pendulum

  • @EmojiMELT
    @EmojiMELT 6 місяців тому

    This look like somthing from Vib Ribbon.

  • @mw2682
    @mw2682 3 місяці тому

    この世の真理です

  • @KevinLlanio
    @KevinLlanio Місяць тому

    1:00 2:00 3:00 4:00

  • @user-ex5ww4rn6y
    @user-ex5ww4rn6y 6 місяців тому +2

    It looks cool doesn't it?

    • @user-ex5ww4rn6y
      @user-ex5ww4rn6y 6 місяців тому +1

      But why no sound?

    • @Wangbw
      @Wangbw  6 місяців тому

      didn't find out satisfying sound effect.

  • @josephdays07
    @josephdays07 5 місяців тому

    I have wrote its equation;With Trigonometric Partitions Theory. I left this video. ua-cam.com/video/Od0dJIyF9rk/v-deo.htmlsi=7_3wppxmp7nApEbr

    • @Wangbw
      @Wangbw  Місяць тому

      I checked it out, no bad bro.

    • @josephdays07
      @josephdays07 Місяць тому

      @@Wangbw Thanks. Here I revealed an equation, how I dot it with pure Mathematics. I wrote a book about it.
      ua-cam.com/video/zTQHj0EhNmM/v-deo.htmlsi=7oXDjdr09WWDNx0p

  • @Resyio786
    @Resyio786 5 місяців тому

    Hi

    • @Wangbw
      @Wangbw  5 місяців тому

      Hello how u doing bro

    • @Resyio786
      @Resyio786 5 місяців тому

      @@Wangbw I'm good

  • @chenurbano
    @chenurbano 6 місяців тому

    Is this python?

    • @Wangbw
      @Wangbw  6 місяців тому

      yeah

    • @Wangbw
      @Wangbw  Місяць тому

      you could view the python code on desc or comment.

  • @pamleon8615
    @pamleon8615 3 місяці тому

    2:30