ManimCommunity/manim

Add documentation about unit conversion feature

Open

#2,512 opened on 2022年1月29日

GitHub で見る
 (2 comments) (0 reactions) (1 assignee)Python (17,820 stars) (1,378 forks)batch import
documentationenhancementgood first issue

説明

Enhancement proposal

This feature was implemented in https://github.com/ManimCommunity/manim/pull/742, but there isn't any documentation about this.

# 50px -> Munit
>>> 50 * unit.Pixels
0.37037037037037035
# 90 degrees to radians
>>> 90 * unit.Degrees
1.5707963267948966
# 10 % of X-axis
>>> unit.Percent(X_AXIS) * 10
1.4222222222222223

コントリビューターガイド