3b1b / 3b1b/manim

Mistake in Quickstart Tutorial

未關閉 適合新手
#2,080 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
93.9k
分支
7.7k
平均合併
2 天 13 小時
30 天內合併 PR
4

描述

https://docs.manim.community/en/stable/tutorials/quickstart.html
![image](https://github.com/3b1b/manim/assets/45933261/48c67383-3f82-4466-a98e-dfc12f6acefe)
The explanation says that the rotation is 360 degrees but as can be seen from the corresponding code below, the rotation is actually 180 degrees.
class DifferentRotations(Scene):
def construct(self):
left_square = Square(color=BLUE, fill_opacity=0.7).shift(2 * LEFT)
right_square = Square(color=GREEN, fill_opacity=0.7).shift(2 * RIGHT)
self.play(
left_square.animate.rotate(PI), Rotate(right_square, angle=PI), run_time=2
)
self.wait()

The interpolation of a rotation of 360 degrees results in a complete lack of any animation(can be observed by changing rotation to 2*PI for left_square.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

此問題指向一個特定的文件:docs/tutorials/quickstart.html。定位對應的來源檔案(可能位於 docs/ 目錄中,可能是 reStructuredText 或 Markdown 格式)。找到描述 DifferentRotations 範例的區段,並將顯示為 360 度的文字修正為 180 度,與所示程式碼一致(PI radians = 180 degrees)。透過在本機構建文檔或檢查渲染輸出來驗證此變更。

由索引模型根據 Issue 內容生成。

評估

領域
documentation
Issue 類型
文件
難度
1/5
預估耗時
1 小時以內
活躍度
停滯
描述清晰度
描述清楚
新手友好度
85/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。