forked from 3b1b/manim
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add examples to animation creation (3b1b#820)
* added creation animation * added further animation * added further animation + docstring template * added further examples * black * one more update * one more update * one more update * one more update * one more update become * hope that this will fix the build * Apply suggestions from code review Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at> Co-authored-by: Leo Torres <dleonardotn@gmail.com> * updated templates * small fix * tests * Apply suggestions from code review Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at> * Update README.md * merged master and typo in README.md Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at> Co-authored-by: Leo Torres <dleonardotn@gmail.com>
- Loading branch information
1 parent
3c9ff3f
commit c05ee3e
Showing
6 changed files
with
144 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# see more documentation guidelines online here: https://github.com/ManimCommunity/manim/wiki/Documentation-guidelines-(WIP) | ||
|
||
|
||
class SomeClass: | ||
"""A one line description of the Class. | ||
A short paragraph providing more details. | ||
Deprecation warning | ||
Extended Summary | ||
Parameters | ||
---------- | ||
scale_factor : :class:`float` | ||
The factor used for scaling. | ||
Returns | ||
------- | ||
:class:`~.VMobject` | ||
Returns the modified :class:`~.VMobject`. | ||
Tests | ||
----- | ||
Yields | ||
------- | ||
Receives | ||
---------- | ||
Other Parameters | ||
----------------- | ||
Raises | ||
------ | ||
:class:`TypeError` | ||
If one element of the list is not an instance of VMobject | ||
Warns | ||
----- | ||
Warnings | ||
-------- | ||
Notes | ||
----- | ||
Examples | ||
-------- | ||
.. manim:: AddTextLetterByLetterScene | ||
:save_last_frame: | ||
class AddTextLetterByLetterScene(Scene): | ||
def construct(self): | ||
t = Text("Hello World word by word") | ||
self.play(AddTextWordByWord(t)) | ||
See Also | ||
-------- | ||
:class:`ShowCreation`, :class:`~.ShowPassingFlash` | ||
References | ||
---------- | ||
Other useful directives: | ||
.. tip:: | ||
This is currently only possible for class:`~.Text` and not for class:`~.MathTex`. | ||
.. note:: | ||
This is something to note. | ||
""" |
File renamed without changes.