mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
* #added some examples to the camera scene * #added 3 ZoomedScene examples * #removed accidentally added files * #added updater examples * #added text examples * #renamed example * #added 3d example with other light source * #added imagemobject examples * # added one line of code * # small fix * # added 3d examples * # added one advanced project * fixed error * small changes * 3d render * another idea with the file 3d_fix.rst * # one more change * some more formula examples * fix indent * remove reference to examples/3d_fix * change default resolution for videos in doc to 480p30 * Apply suggestions leotrs Co-authored-by: Leo Torres <leo@leotrs.com> * Added credits and 3d scene changes * # removed unnecessary lines * # implemented lots of changes suggested be leotrs * # updated credits * # updated scene names * Update docs/source/examples/shapes.rst Co-authored-by: Leo Torres <leo@leotrs.com> * updated credits * updated examples entery * Update camera_settings.rst * changed two lines * Update shapes.rst * Update plots.rst Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at> Co-authored-by: Leo Torres <leo@leotrs.com>
17 lines
565 B
ReStructuredText
17 lines
565 B
ReStructuredText
Annotations
|
|
=================================
|
|
|
|
.. manim:: AnnotateBrace
|
|
:save_last_frame:
|
|
|
|
class AnnotateBrace(Scene):
|
|
def construct(self):
|
|
dot = Dot([0, 0, 0])
|
|
dot2 = Dot([2, 1, 0])
|
|
line = Line(dot.get_center(), dot2.get_center()).set_color(ORANGE)
|
|
b1 = Brace(line)
|
|
b1text = b1.get_text("Distance")
|
|
b2 = Brace(line, direction=line.copy().rotate(PI / 2).get_unit_vector())
|
|
b2text = b2.get_tex("x-x_1")
|
|
self.add(dot, dot2, line, b1, b2, b1text, b2text)
|
|
|