datacut 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. datacut/__init__.py +121 -0
  2. datacut/__main__.py +122 -0
  3. datacut/animation/__init__.py +0 -0
  4. datacut/animation/animation.py +336 -0
  5. datacut/animation/composition.py +258 -0
  6. datacut/animation/creation.py +315 -0
  7. datacut/animation/fading.py +328 -0
  8. datacut/animation/growing.py +90 -0
  9. datacut/animation/indication.py +608 -0
  10. datacut/animation/movement.py +165 -0
  11. datacut/animation/numbers.py +92 -0
  12. datacut/animation/physics.py +453 -0
  13. datacut/animation/rotation.py +95 -0
  14. datacut/animation/specialized.py +956 -0
  15. datacut/animation/transform.py +505 -0
  16. datacut/animation/transform_matching_parts.py +343 -0
  17. datacut/animation/update.py +95 -0
  18. datacut/camera/__init__.py +0 -0
  19. datacut/camera/camera.py +795 -0
  20. datacut/camera/camera_frame.py +320 -0
  21. datacut/camera/cinematography.py +1166 -0
  22. datacut/config.py +479 -0
  23. datacut/constants.py +160 -0
  24. datacut/css/__init__.py +189 -0
  25. datacut/css/easing.py +328 -0
  26. datacut/css/engine.py +1727 -0
  27. datacut/css/gradients.py +678 -0
  28. datacut/css/motion.py +1615 -0
  29. datacut/css/parser.py +741 -0
  30. datacut/css/presets.py +143 -0
  31. datacut/css/shader_fill.py +703 -0
  32. datacut/css/values.py +650 -0
  33. datacut/default_config.yml +224 -0
  34. datacut/event_handler/__init__.py +6 -0
  35. datacut/event_handler/event_dispatcher.py +161 -0
  36. datacut/event_handler/event_listner.py +31 -0
  37. datacut/event_handler/event_type.py +11 -0
  38. datacut/event_handler/picking.py +111 -0
  39. datacut/event_keys.py +53 -0
  40. datacut/extract_scene.py +200 -0
  41. datacut/layout/__init__.py +39 -0
  42. datacut/layout/components.py +425 -0
  43. datacut/layout/containers.py +1520 -0
  44. datacut/logger.py +13 -0
  45. datacut/mobject/__init__.py +0 -0
  46. datacut/mobject/boolean_ops.py +168 -0
  47. datacut/mobject/changing.py +209 -0
  48. datacut/mobject/coordinate_systems.py +1056 -0
  49. datacut/mobject/fractals.py +348 -0
  50. datacut/mobject/frame.py +80 -0
  51. datacut/mobject/functions.py +147 -0
  52. datacut/mobject/geometry.py +1834 -0
  53. datacut/mobject/gltf.py +243 -0
  54. datacut/mobject/interactive.py +906 -0
  55. datacut/mobject/lights.py +366 -0
  56. datacut/mobject/materials.py +207 -0
  57. datacut/mobject/matrix.py +570 -0
  58. datacut/mobject/mesh3d.py +2288 -0
  59. datacut/mobject/mobject.py +2885 -0
  60. datacut/mobject/mobject_update_utils.py +123 -0
  61. datacut/mobject/model.py +543 -0
  62. datacut/mobject/number_line.py +517 -0
  63. datacut/mobject/numbers.py +441 -0
  64. datacut/mobject/probability.py +536 -0
  65. datacut/mobject/shape_matchers.py +161 -0
  66. datacut/mobject/subtitles.py +260 -0
  67. datacut/mobject/svg/__init__.py +0 -0
  68. datacut/mobject/svg/brace.py +356 -0
  69. datacut/mobject/svg/drawings.py +1041 -0
  70. datacut/mobject/svg/old_tex_mobject.py +335 -0
  71. datacut/mobject/svg/path_cache.py +155 -0
  72. datacut/mobject/svg/special_tex.py +216 -0
  73. datacut/mobject/svg/string_mobject.py +622 -0
  74. datacut/mobject/svg/svg_mobject.py +657 -0
  75. datacut/mobject/svg/svg_parse.py +437 -0
  76. datacut/mobject/svg/tex_mobject.py +499 -0
  77. datacut/mobject/svg/text_mobject.py +702 -0
  78. datacut/mobject/svg/typst_mobject.py +864 -0
  79. datacut/mobject/three_dimensions.py +686 -0
  80. datacut/mobject/types/__init__.py +0 -0
  81. datacut/mobject/types/dot_cloud.py +220 -0
  82. datacut/mobject/types/image_mobject.py +130 -0
  83. datacut/mobject/types/point_cloud_mobject.py +138 -0
  84. datacut/mobject/types/shader_mobject.py +268 -0
  85. datacut/mobject/types/surface.py +848 -0
  86. datacut/mobject/types/vectorized_mobject.py +1749 -0
  87. datacut/mobject/types/video_mobject.py +3902 -0
  88. datacut/mobject/value_tracker.py +110 -0
  89. datacut/mobject/vector_field.py +585 -0
  90. datacut/module_loader.py +176 -0
  91. datacut/reactive/__init__.py +25 -0
  92. datacut/reactive/signals.py +610 -0
  93. datacut/renderer/__init__.py +4 -0
  94. datacut/renderer/drawing.py +1066 -0
  95. datacut/renderer/gpu.py +800 -0
  96. datacut/renderer/material.py +88 -0
  97. datacut/renderer/pipeline.py +179 -0
  98. datacut/renderer/post_process.py +577 -0
  99. datacut/renderer/renderer.py +1285 -0
  100. datacut/renderer/shader_source.py +146 -0
  101. datacut/renderer/shared_buffer.py +185 -0
  102. datacut/renderer/texture.py +217 -0
  103. datacut/renderer/uniform_block.py +118 -0
  104. datacut/scene/__init__.py +0 -0
  105. datacut/scene/incremental.py +233 -0
  106. datacut/scene/interactive_scene.py +758 -0
  107. datacut/scene/performance.py +226 -0
  108. datacut/scene/presentation_scene.py +783 -0
  109. datacut/scene/recording.py +541 -0
  110. datacut/scene/safe_zones.py +323 -0
  111. datacut/scene/scene.py +2849 -0
  112. datacut/scene/scene_embed.py +277 -0
  113. datacut/scene/scene_file_writer.py +1014 -0
  114. datacut/scene/scene_task.py +183 -0
  115. datacut/scene/sfx.py +164 -0
  116. datacut/scene/sound.py +702 -0
  117. datacut/scene/sound_clip.py +580 -0
  118. datacut/scene/timeline.py +1689 -0
  119. datacut/scene/transcript.py +503 -0
  120. datacut/shaders/fill.wgsl +107 -0
  121. datacut/shaders/fill_depth.wgsl +198 -0
  122. datacut/shaders/image.wgsl +25 -0
  123. datacut/shaders/inserts/NOTE.md +16 -0
  124. datacut/shaders/inserts/clip_test.wgsl +14 -0
  125. datacut/shaders/inserts/complex_functions.wgsl +20 -0
  126. datacut/shaders/inserts/fill_color.wgsl +10 -0
  127. datacut/shaders/inserts/finalize_color.wgsl +44 -0
  128. datacut/shaders/inserts/frame_uniforms.wgsl +37 -0
  129. datacut/shaders/inserts/frame_units.wgsl +18 -0
  130. datacut/shaders/inserts/image_quad.wgsl +28 -0
  131. datacut/shaders/inserts/mobject_uniforms.wgsl +11 -0
  132. datacut/shaders/inserts/project_point.wgsl +44 -0
  133. datacut/shaders/inserts/quad_corners.wgsl +12 -0
  134. datacut/shaders/inserts/read_data.wgsl +33 -0
  135. datacut/shaders/inserts/surface_mesh.wgsl +106 -0
  136. datacut/shaders/mandelbrot_fractal.wgsl +100 -0
  137. datacut/shaders/mesh.wgsl +474 -0
  138. datacut/shaders/newton_fractal.wgsl +200 -0
  139. datacut/shaders/present.wgsl +62 -0
  140. datacut/shaders/stroke.wgsl +1141 -0
  141. datacut/shaders/stroke_depth.wgsl +1136 -0
  142. datacut/shaders/surface.wgsl +40 -0
  143. datacut/shaders/textured_surface.wgsl +59 -0
  144. datacut/shaders/true_dot.wgsl +78 -0
  145. datacut/shaders/video.wgsl +42 -0
  146. datacut/tex_templates.yml +736 -0
  147. datacut/transcribe.py +32 -0
  148. datacut/typing.py +412 -0
  149. datacut/utils/__init__.py +0 -0
  150. datacut/utils/bezier.py +467 -0
  151. datacut/utils/browser_audio.py +423 -0
  152. datacut/utils/browser_code_transform.py +1293 -0
  153. datacut/utils/browser_completions.py +2255 -0
  154. datacut/utils/browser_fonts.py +143 -0
  155. datacut/utils/browser_pathops.py +47 -0
  156. datacut/utils/browser_scheduler.py +18 -0
  157. datacut/utils/browser_typst.py +82 -0
  158. datacut/utils/cache.py +34 -0
  159. datacut/utils/cinematic_vfx.py +779 -0
  160. datacut/utils/color.py +203 -0
  161. datacut/utils/debug.py +46 -0
  162. datacut/utils/dict_ops.py +22 -0
  163. datacut/utils/directories.py +55 -0
  164. datacut/utils/editor_signatures.py +1806 -0
  165. datacut/utils/editor_thumbnails.py +769 -0
  166. datacut/utils/family_ops.py +48 -0
  167. datacut/utils/file_ops.py +65 -0
  168. datacut/utils/images.py +52 -0
  169. datacut/utils/iterables.py +216 -0
  170. datacut/utils/native.py +280 -0
  171. datacut/utils/paths.py +83 -0
  172. datacut/utils/rate_functions.py +154 -0
  173. datacut/utils/render_geometry.py +186 -0
  174. datacut/utils/simple_functions.py +99 -0
  175. datacut/utils/sounds.py +43 -0
  176. datacut/utils/space_ops.py +460 -0
  177. datacut/utils/structured_array.py +256 -0
  178. datacut/utils/svg_export.py +102 -0
  179. datacut/utils/tex.py +139 -0
  180. datacut/utils/tex_file_writing.py +164 -0
  181. datacut/utils/tex_to_symbol_count.py +186 -0
  182. datacut/utils/typst_file_writing.py +205 -0
  183. datacut/utils/vfx_presets.py +4543 -0
  184. datacut/utils/visual_css.py +737 -0
  185. datacut/utils/visual_editor.py +4292 -0
  186. datacut/utils/window_audio.py +760 -0
  187. datacut/window.py +910 -0
  188. datacut-0.1.0.dist-info/METADATA +226 -0
  189. datacut-0.1.0.dist-info/RECORD +193 -0
  190. datacut-0.1.0.dist-info/WHEEL +5 -0
  191. datacut-0.1.0.dist-info/entry_points.txt +2 -0
  192. datacut-0.1.0.dist-info/licenses/LICENSE.md +21 -0
  193. datacut-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,608 @@
1
+ from __future__ import annotations
2
+
3
+ # What the Visual Editor files this module's classes under
4
+ __editor_category__ = 'Indication'
5
+
6
+ import numpy as np
7
+
8
+ from datacut.animation.animation import Animation
9
+ from datacut.animation.composition import AnimationGroup
10
+ from datacut.animation.composition import Succession
11
+ from datacut.animation.creation import ShowCreation
12
+ from datacut.animation.creation import ShowPartial
13
+ from datacut.animation.fading import FadeOut
14
+ from datacut.animation.fading import FadeIn
15
+ from datacut.animation.movement import Homotopy
16
+ from datacut.animation.transform import Transform
17
+ from datacut.constants import FRAME_X_RADIUS, FRAME_Y_RADIUS
18
+ from datacut.constants import ORIGIN, RIGHT, UP
19
+ from datacut.constants import SMALL_BUFF
20
+ from datacut.constants import DEG
21
+ from datacut.constants import TAU
22
+ from datacut.constants import GREY, YELLOW
23
+ from datacut.mobject.geometry import Circle
24
+ from datacut.mobject.geometry import Dot
25
+ from datacut.mobject.geometry import Line
26
+ from datacut.mobject.shape_matchers import SurroundingRectangle
27
+ from datacut.mobject.shape_matchers import Underline
28
+ from datacut.mobject.types.vectorized_mobject import VMobject
29
+ from datacut.mobject.types.vectorized_mobject import VGroup
30
+ from datacut.utils.bezier import interpolate
31
+ from datacut.utils.rate_functions import smooth
32
+ from datacut.utils.rate_functions import squish_rate_func
33
+ from datacut.utils.rate_functions import there_and_back
34
+ from datacut.utils.rate_functions import wiggle
35
+ from datacut.typing import UnsignedFloat, UnsignedInt
36
+
37
+ from typing import TYPE_CHECKING
38
+
39
+ if TYPE_CHECKING:
40
+ from datacut.typing import Angle, Duration, Opacity, RateFunction, StrokeWidth, Vect3
41
+ from typing import Callable, Optional
42
+ from datacut.typing import ManimColor
43
+ from datacut.mobject.mobject import Mobject
44
+
45
+
46
+ class FocusOn(Transform):
47
+ def __init__(
48
+ self,
49
+ focus_point: np.ndarray | Mobject,
50
+ opacity: Opacity = 0.2,
51
+ color: ManimColor = GREY,
52
+ run_time: Duration = 2,
53
+ remover: bool = True,
54
+ **kwargs
55
+ ):
56
+ self.focus_point = focus_point
57
+ self.opacity = opacity
58
+ self.color = color
59
+ # Initialize with blank mobject, while create_target
60
+ # and create_starting_mobject handle the meat
61
+ super().__init__(VMobject(), run_time=run_time, remover=remover, **kwargs)
62
+
63
+ def create_target(self) -> Dot:
64
+ little_dot = Dot(radius=0)
65
+ little_dot.set_fill(self.color, opacity=self.opacity)
66
+ little_dot.add_updater(lambda d: d.move_to(self.focus_point))
67
+ return little_dot
68
+
69
+ def create_starting_mobject(self) -> Dot:
70
+ return Dot(
71
+ radius=FRAME_X_RADIUS + FRAME_Y_RADIUS,
72
+ stroke_width=0,
73
+ fill_color=self.color,
74
+ fill_opacity=0,
75
+ )
76
+
77
+ editor_thumbnail = (
78
+ '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 24">'
79
+ '<path d="M14.2 12.0Q14.2 10.8 13.8 9.7Q13.3 8.5 12.4 7.7Q11.6 6.8 10.4 6.4Q9.3 5.9 8.1 5.9Q6.9 5.9 5.8 6.4Q4.6 6.8 3.8 7.7Q2.9 8.5 2.5 9.7Q2.0 10.8 2.0 12.0Q2.0 13.2 2.5 14.3Q2.9 15.5 3.8 16.3Q4.6 17.2 5.8 17.6Q6.9 18.1 8.1 18.1Q9.3 18.1 10.4 17.6Q11.6 17.2 12.4 16.3Q13.3 15.5 13.8 14.3Q14.2 13.2 14.2 12.0Z" fill="#888888" fill-opacity="0.01" fill-rule="evenodd" stroke-linejoin="round"/>'
80
+ '<path d="M26.6 12.0Q26.6 11.5 26.4 11.0Q26.2 10.5 25.9 10.1Q25.5 9.8 25.0 9.6Q24.5 9.4 24.0 9.4Q23.5 9.4 23.0 9.6Q22.5 9.8 22.1 10.1Q21.8 10.5 21.6 11.0Q21.4 11.5 21.4 12.0Q21.4 12.5 21.6 13.0Q21.8 13.5 22.1 13.9Q22.5 14.2 23.0 14.4Q23.5 14.6 24.0 14.6Q24.5 14.6 25.0 14.4Q25.5 14.2 25.9 13.9Q26.2 13.5 26.4 13.0Q26.6 12.5 26.6 12.0Z" fill="#888888" fill-opacity="0.12" fill-rule="evenodd" stroke-linejoin="round"/>'
81
+ '<path d="M39.9 12.0Q39.9 12.0 39.9 12.0Q39.9 12.0 39.9 12.0Q39.9 12.0 39.9 12.0Q39.9 12.0 39.9 12.0Q39.9 12.0 39.9 12.0Q39.9 12.0 39.9 12.0Q39.9 12.0 39.9 12.0Q39.9 12.0 39.9 12.0Q39.9 12.0 39.9 12.0Q39.9 12.0 39.9 12.0Q39.9 12.0 39.9 12.0Q39.9 12.0 39.9 12.0Q39.9 12.0 39.9 12.0Q39.9 12.0 39.9 12.0Q39.9 12.0 39.9 12.0Q39.9 12.0 39.9 12.0Z" fill="#888888" fill-opacity="0.20" fill-rule="evenodd" stroke-linejoin="round"/>'
82
+ '</svg>'
83
+ )
84
+
85
+
86
+ class Indicate(Transform):
87
+ def __init__(
88
+ self,
89
+ mobject: Mobject,
90
+ scale_factor: float = 1.2,
91
+ color: Optional[ManimColor] = YELLOW,
92
+ rate_func: RateFunction = there_and_back,
93
+ **kwargs
94
+ ):
95
+ self.scale_factor = scale_factor
96
+ self.color = color
97
+ super().__init__(mobject, rate_func=rate_func, **kwargs)
98
+
99
+ def create_target(self) -> Mobject:
100
+ target = self.mobject.copy()
101
+ target.scale(self.scale_factor)
102
+ if self.color is not None:
103
+ target.set_color(self.color)
104
+ return target
105
+
106
+ editor_thumbnail = (
107
+ '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 24">'
108
+ '<path d="M13.5 6.6Q8.1 6.6 2.7 6.6Q2.7 12.0 2.7 17.4Q8.1 17.4 13.5 17.4Q13.5 12.0 13.5 6.6Z" fill="#8DD797" fill-opacity="0.60" stroke="#D9F0A4" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
109
+ '<path d="M30.1 5.9Q24.0 5.9 17.9 5.9Q17.9 12.0 17.9 18.1Q24.0 18.1 30.1 18.1Q30.1 12.0 30.1 5.9Z" fill="#FEFE02" fill-opacity="0.60" stroke="#FFFF02" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
110
+ '<path d="M45.0 6.9Q39.9 6.9 34.8 6.9Q34.8 12.0 34.8 17.1Q39.9 17.1 45.0 17.1Q45.0 12.0 45.0 6.9Z" fill="#58C4DD" fill-opacity="0.60" stroke="#C7E9F1" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
111
+ '</svg>'
112
+ )
113
+
114
+
115
+ class Flash(AnimationGroup):
116
+ def __init__(
117
+ self,
118
+ point: np.ndarray | Mobject,
119
+ color: ManimColor = YELLOW,
120
+ line_length: UnsignedFloat = 0.2,
121
+ num_lines: UnsignedInt = 12,
122
+ flash_radius: UnsignedFloat = 0.3,
123
+ line_stroke_width: StrokeWidth = 3.0,
124
+ run_time: Duration = 1.0,
125
+ **kwargs
126
+ ):
127
+ self.point = point
128
+ self.color = color
129
+ self.line_length = line_length
130
+ self.num_lines = num_lines
131
+ self.flash_radius = flash_radius
132
+ self.line_stroke_width = line_stroke_width
133
+
134
+ self.lines = self.create_lines()
135
+ animations = self.create_line_anims()
136
+ super().__init__(
137
+ *animations,
138
+ group=self.lines,
139
+ run_time=run_time,
140
+ **kwargs,
141
+ )
142
+
143
+ def create_lines(self) -> VGroup:
144
+ lines = VGroup()
145
+ for angle in np.arange(0, TAU, TAU / self.num_lines):
146
+ line = Line(ORIGIN, self.line_length * RIGHT)
147
+ line.shift((self.flash_radius - self.line_length) * RIGHT)
148
+ line.rotate(angle, about_point=ORIGIN)
149
+ lines.add(line)
150
+ lines.set_stroke(
151
+ color=self.color,
152
+ width=self.line_stroke_width
153
+ )
154
+ lines.add_updater(lambda l: l.move_to(self.point))
155
+ return lines
156
+
157
+ def create_line_anims(self) -> list[Animation]:
158
+ return [
159
+ ShowCreationThenDestruction(line)
160
+ for line in self.lines
161
+ ]
162
+
163
+ editor_thumbnail = (
164
+ '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 24">'
165
+ '<path d="M10.1 12.0Q10.5 12.0 10.9 12.0" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
166
+ '<path d="M9.9 11.0Q10.2 10.8 10.5 10.6" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
167
+ '<path d="M9.1 10.2Q9.3 9.9 9.5 9.6" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
168
+ '<path d="M8.1 10.0Q8.1 9.6 8.1 9.3" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
169
+ '<path d="M7.1 10.2Q6.9 9.9 6.7 9.6" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
170
+ '<path d="M6.3 11.0Q6.0 10.8 5.7 10.6" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
171
+ '<path d="M6.1 12.0Q5.7 12.0 5.4 12.0" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
172
+ '<path d="M6.3 13.0Q6.0 13.2 5.7 13.4" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
173
+ '<path d="M7.1 13.8Q6.9 14.1 6.7 14.4" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
174
+ '<path d="M8.1 14.0Q8.1 14.4 8.1 14.7" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
175
+ '<path d="M9.1 13.8Q9.3 14.1 9.5 14.4" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
176
+ '<path d="M9.9 13.0Q10.2 13.2 10.5 13.4" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
177
+ '<path d="M26.0 12.0Q28.1 12.0 30.1 12.0" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
178
+ '<path d="M25.8 11.0Q27.5 10.0 29.3 8.9" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
179
+ '<path d="M25.0 10.2Q26.0 8.5 27.1 6.7" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
180
+ '<path d="M24.0 10.0Q24.0 7.9 24.0 5.9" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
181
+ '<path d="M23.0 10.2Q22.0 8.5 20.9 6.7" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
182
+ '<path d="M22.2 11.0Q20.5 10.0 18.7 8.9" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
183
+ '<path d="M22.0 12.0Q19.9 12.0 17.9 12.0" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
184
+ '<path d="M22.2 13.0Q20.5 14.0 18.7 15.1" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
185
+ '<path d="M23.0 13.8Q22.0 15.5 20.9 17.3" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
186
+ '<path d="M24.0 14.0Q24.0 16.1 24.0 18.1" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
187
+ '<path d="M25.0 13.8Q26.0 15.5 27.1 17.3" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
188
+ '<path d="M25.8 13.0Q27.5 14.0 29.3 15.1" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
189
+ '<path d="M46.0 12.0Q46.0 12.0 46.0 12.0Z" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
190
+ '<path d="M45.2 8.9Q45.2 8.9 45.2 8.9Z" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
191
+ '<path d="M42.9 6.7Q42.9 6.7 42.9 6.7Z" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
192
+ '<path d="M39.9 5.9Q39.9 5.9 39.9 5.9Z" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
193
+ '<path d="M36.8 6.7Q36.8 6.7 36.8 6.7Z" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
194
+ '<path d="M34.6 8.9Q34.6 8.9 34.6 8.9Z" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
195
+ '<path d="M33.8 12.0Q33.8 12.0 33.8 12.0Z" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
196
+ '<path d="M34.6 15.1Q34.6 15.1 34.6 15.1Z" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
197
+ '<path d="M36.8 17.3Q36.8 17.3 36.8 17.3Z" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
198
+ '<path d="M39.9 18.1Q39.9 18.1 39.9 18.1Z" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
199
+ '<path d="M42.9 17.3Q42.9 17.3 42.9 17.3Z" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
200
+ '<path d="M45.2 15.1Q45.2 15.1 45.2 15.1Z" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
201
+ '</svg>'
202
+ )
203
+
204
+
205
+ class CircleIndicate(Transform):
206
+ def __init__(
207
+ self,
208
+ mobject: Mobject,
209
+ scale_factor: float = 1.2,
210
+ rate_func: RateFunction = there_and_back,
211
+ stroke_color: ManimColor = YELLOW,
212
+ stroke_width: StrokeWidth = 3.0,
213
+ remover: bool = True,
214
+ **kwargs
215
+ ):
216
+ circle = Circle(stroke_color=stroke_color, stroke_width=stroke_width)
217
+ circle.surround(mobject)
218
+ pre_circle = circle.copy().set_stroke(width=0)
219
+ pre_circle.scale(1 / scale_factor)
220
+ super().__init__(
221
+ pre_circle, circle,
222
+ rate_func=rate_func,
223
+ remover=remover,
224
+ **kwargs
225
+ )
226
+
227
+ editor_thumbnail = (
228
+ '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 24">'
229
+ '<path d="M13.5 12.0Q13.5 10.9 13.1 9.9Q12.7 8.9 11.9 8.2Q11.2 7.4 10.2 7.0Q9.2 6.6 8.1 6.6Q7.0 6.6 6.0 7.0Q5.0 7.4 4.3 8.2Q3.5 8.9 3.1 9.9Q2.7 10.9 2.7 12.0Q2.7 13.1 3.1 14.1Q3.5 15.1 4.3 15.8Q5.0 16.6 6.0 17.0Q7.0 17.4 8.1 17.4Q9.2 17.4 10.2 17.0Q11.2 16.6 11.9 15.8Q12.7 15.1 13.1 14.1Q13.5 13.1 13.5 12.0Z" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
230
+ '<path d="M30.1 12.0Q30.1 10.8 29.6 9.7Q29.2 8.5 28.3 7.7Q27.5 6.8 26.3 6.4Q25.2 5.9 24.0 5.9Q22.8 5.9 21.7 6.4Q20.5 6.8 19.7 7.7Q18.8 8.5 18.4 9.7Q17.9 10.8 17.9 12.0Q17.9 13.2 18.4 14.3Q18.8 15.5 19.7 16.3Q20.5 17.2 21.7 17.6Q22.8 18.1 24.0 18.1Q25.2 18.1 26.3 17.6Q27.5 17.2 28.3 16.3Q29.2 15.5 29.6 14.3Q30.1 13.2 30.1 12.0Z" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
231
+ '<path d="M45.0 12.0Q45.0 11.0 44.6 10.0Q44.2 9.1 43.5 8.4Q42.8 7.7 41.8 7.3Q40.9 6.9 39.9 6.9Q38.9 6.9 37.9 7.3Q37.0 7.7 36.3 8.4Q35.6 9.1 35.2 10.0Q34.8 11.0 34.8 12.0Q34.8 13.0 35.2 14.0Q35.6 14.9 36.3 15.6Q37.0 16.3 37.9 16.7Q38.9 17.1 39.9 17.1Q40.9 17.1 41.8 16.7Q42.8 16.3 43.5 15.6Q44.2 14.9 44.6 14.0Q45.0 13.0 45.0 12.0Z" fill="none" stroke="#888888" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
232
+ '</svg>'
233
+ )
234
+
235
+
236
+ class ShowPassingFlash(ShowPartial):
237
+ def __init__(
238
+ self,
239
+ mobject: Mobject,
240
+ time_width: UnsignedFloat = 0.1,
241
+ remover: bool = True,
242
+ **kwargs
243
+ ):
244
+ self.time_width = time_width
245
+ super().__init__(
246
+ mobject,
247
+ remover=remover,
248
+ **kwargs
249
+ )
250
+
251
+ def get_bounds(self, alpha: float) -> tuple[float, float]:
252
+ tw = self.time_width
253
+ upper = interpolate(0, 1 + tw, alpha)
254
+ lower = upper - tw
255
+ upper = min(upper, 1)
256
+ lower = max(lower, 0)
257
+ return (lower, upper)
258
+
259
+ def finish(self) -> None:
260
+ super().finish()
261
+ for submob, start in self.get_all_families_zipped():
262
+ submob.pointwise_become_partial(start, 0, 1)
263
+
264
+ editor_thumbnail = (
265
+ '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 24">'
266
+ '<path d="M14.2 4.3Q12.3 4.3 10.3 4.3Q10.3 4.3 10.3 4.3Q10.3 4.3 10.3 4.3Q10.3 4.3 10.3 4.3" fill="#58C4DD" fill-opacity="0.60" stroke="#C7E9F1" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
267
+ '<path d="M17.9 19.7Q17.9 19.7 17.9 19.7Q17.9 19.7 17.9 19.7Q21.0 19.7 24.1 19.7Q24.1 19.7 24.1 19.7" fill="#58C4DD" fill-opacity="0.60" stroke="#C7E9F1" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
268
+ '<path d="M46.0 4.3Q46.0 4.3 46.0 4.3Q46.0 4.3 46.0 4.3Q46.0 4.3 46.0 4.3Q46.0 4.3 46.0 4.3Z" fill="#58C4DD" fill-opacity="0.60" stroke="#C7E9F1" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
269
+ '</svg>'
270
+ )
271
+
272
+
273
+ class VShowPassingFlash(Animation):
274
+ def __init__(
275
+ self,
276
+ vmobject: VMobject,
277
+ time_width: UnsignedFloat = 0.3,
278
+ taper_width: UnsignedFloat = 0.05,
279
+ remover: bool = True,
280
+ **kwargs
281
+ ):
282
+ self.time_width = time_width
283
+ self.taper_width = taper_width
284
+ super().__init__(vmobject, remover=remover, **kwargs)
285
+ self.mobject = vmobject
286
+
287
+ def taper_kernel(self, x):
288
+ if x < self.taper_width:
289
+ return x
290
+ elif x > 1 - self.taper_width:
291
+ return 1.0 - x
292
+ return 1.0
293
+
294
+ def begin(self) -> None:
295
+ # Compute an array of stroke widths for each submobject
296
+ # which tapers out at either end
297
+ self.submob_to_widths = dict()
298
+ for sm in self.mobject.get_family():
299
+ widths = sm.get_stroke_widths()
300
+ self.submob_to_widths[hash(sm)] = np.array([
301
+ width * self.taper_kernel(x)
302
+ for width, x in zip(widths, np.linspace(0, 1, len(widths)))
303
+ ])
304
+ super().begin()
305
+
306
+ def interpolate_submobject(
307
+ self,
308
+ submobject: VMobject,
309
+ starting_sumobject: None,
310
+ alpha: float
311
+ ) -> None:
312
+ widths = self.submob_to_widths[hash(submobject)]
313
+
314
+ # Create a gaussian such that 3 sigmas out on either side
315
+ # will equals time_width
316
+ tw = self.time_width
317
+ sigma = tw / 6
318
+ mu = interpolate(-tw / 2, 1 + tw / 2, alpha)
319
+ xs = np.linspace(0, 1, len(widths))
320
+ zs = (xs - mu) / sigma
321
+ gaussian = np.exp(-0.5 * zs * zs)
322
+ gaussian[abs(xs - mu) > 3 * sigma] = 0
323
+
324
+ if len(widths * gaussian) !=0:
325
+ submobject.set_stroke(width=widths * gaussian)
326
+
327
+
328
+ def finish(self) -> None:
329
+ super().finish()
330
+ for submob, start in self.get_all_families_zipped():
331
+ submob.match_style(start)
332
+
333
+ editor_thumbnail = (
334
+ '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 24">'
335
+ '<path d="M14.2 5.9Q8.1 5.9 2.0 5.9Q2.0 12.0 2.0 18.1Q8.1 18.1 14.2 18.1Q14.2 12.0 14.2 5.9Z" fill="#58C4DD" fill-opacity="0.60" fill-rule="evenodd" stroke-linejoin="round"/>'
336
+ '<path d="M30.1 5.9Q24.0 5.9 17.9 5.9Q17.9 12.0 17.9 18.1Q24.0 18.1 30.1 18.1Q30.1 12.0 30.1 5.9Z" fill="#58C4DD" fill-opacity="0.60" fill-rule="evenodd" stroke-linejoin="round"/>'
337
+ '<path d="M46.0 5.9Q39.9 5.9 33.8 5.9Q33.8 12.0 33.8 18.1Q39.9 18.1 46.0 18.1Q46.0 12.0 46.0 5.9Z" fill="#58C4DD" fill-opacity="0.60" fill-rule="evenodd" stroke-linejoin="round"/>'
338
+ '</svg>'
339
+ )
340
+
341
+
342
+ class FlashAround(VShowPassingFlash):
343
+ def __init__(
344
+ self,
345
+ mobject: Mobject,
346
+ time_width: UnsignedFloat = 1.0,
347
+ taper_width: UnsignedFloat = 0.0,
348
+ stroke_width: StrokeWidth = 4.0,
349
+ color: ManimColor = YELLOW,
350
+ buff: float = SMALL_BUFF,
351
+ n_inserted_curves: UnsignedInt = 100,
352
+ **kwargs
353
+ ):
354
+ path = self.get_path(mobject, buff)
355
+ if mobject.is_fixed_in_frame():
356
+ path.fix_in_frame()
357
+ path.insert_n_curves(n_inserted_curves)
358
+ path.set_points(path.get_points_without_null_curves())
359
+ path.set_stroke(color, stroke_width)
360
+ super().__init__(path, time_width=time_width, taper_width=taper_width, **kwargs)
361
+
362
+ def get_path(self, mobject: Mobject, buff: float) -> SurroundingRectangle:
363
+ return SurroundingRectangle(mobject, buff=buff)
364
+
365
+ editor_thumbnail = (
366
+ '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 24">'
367
+ '<path d="M14 6Q14 6 14 6Q14 6 13 6Q13 6 13 6Q13 6 12 6Q12 6 12 6Q12 6 11 6Q11 6 11 6Q11 6 10 6Q10 6 10 6Q10 6 10 6Q9 6 9 6Q9 6 9 6Q8 6 8 6Q8 6 8 6Q7 6 7 6Q7 6 7 6Q6 6 6 6Q6 6 6 6Q6 6 5 6Q5 6 5 6Q5 6 4 6Q4 6 4 6Q4 6 3 6Q3 6 3 6Q3 6 2 6Q2 6 2 6Q2 6 2 6Q2 7 2 7Q2 7 2 7Q2 8 2 8Q2 8 2 8Q2 8 2 9Q2 9 2 9Q2 9 2 10Q2 10 2 10Q2 10 2 11Q2 11 2 11Q2 11 2 12Q2 12 2 12Q2 12 2 12Q2 13 2 13Q2 13 2 13Q2 14 2 14Q2 14 2 14Q2 15 2 15Q2 15 2 15Q2 16 2 16Q2 16 2 16Q2 16 2 17Q2 17 2 17Q2 17 2 18Q2 18 2 18Q2 18 2 18Q3 18 3 18Q3 18 3 18Q4 18 4 18Q4 18 4 18Q5 18 5 18Q5 18 5 18Q6 18 6 18Q6 18 6 18Q6 18 7 18Q7 18 7 18Q7 18 8 18Q8 18 8 18Q8 18 9 18Q9 18 9 18Q9 18 10 18Q10 18 10 18Q10 18 10 18Q11 18 11 18Q11 18 11 18Q12 18 12 18Q12 18 12 18Q13 18 13 18Q13 18 13 18Q14 18 14 18Q14 18 14 18Q14 18 14 18Q14 17 14 17Q14 17 14 17Q14 16 14 16Q14 16 14 16Q14 16 14 15Q14 15 14 15Q14 15 14 14Q14 14 14 14Q14 14 14 13Q14 13 14 13Q14 13 14 12Q14 12 14 12Q14 12 14 12Q14 11 14 11Q14 11 14 11Q14 10 14 10Q14 10 14 10Q14 9 14 9Q14 9 14 9Q14 8 14 8Q14 8 14 8Q14 8 14 7Q14 7 14 7Q14 7 14 6Q14 6 14 6Z" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
368
+ '<path d="M30 6Q30 6 30 6Q29 6 29 6Q29 6 29 6Q28 6 28 6Q28 6 28 6Q28 6 27 6Q27 6 27 6Q27 6 26 6Q26 6 26 6Q26 6 25 6Q25 6 25 6Q25 6 24 6Q24 6 24 6Q24 6 24 6Q23 6 23 6Q23 6 23 6Q22 6 22 6Q22 6 22 6Q21 6 21 6Q21 6 21 6Q20 6 20 6Q20 6 20 6Q20 6 19 6Q19 6 19 6Q19 6 18 6Q18 6 18 6Q18 6 18 6Q18 7 18 7Q18 7 18 7Q18 8 18 8Q18 8 18 8Q18 8 18 9Q18 9 18 9Q18 9 18 10Q18 10 18 10Q18 10 18 11Q18 11 18 11Q18 11 18 12Q18 12 18 12Q18 12 18 12Q18 13 18 13Q18 13 18 13Q18 14 18 14Q18 14 18 14Q18 15 18 15Q18 15 18 15Q18 16 18 16Q18 16 18 16Q18 16 18 17Q18 17 18 17Q18 17 18 18Q18 18 18 18Q18 18 18 18Q19 18 19 18Q19 18 19 18Q20 18 20 18Q20 18 20 18Q20 18 21 18Q21 18 21 18Q21 18 22 18Q22 18 22 18Q22 18 23 18Q23 18 23 18Q23 18 24 18Q24 18 24 18Q24 18 24 18Q25 18 25 18Q25 18 25 18Q26 18 26 18Q26 18 26 18Q27 18 27 18Q27 18 27 18Q28 18 28 18Q28 18 28 18Q28 18 29 18Q29 18 29 18Q29 18 30 18Q30 18 30 18Q30 18 30 18Q30 17 30 17Q30 17 30 17Q30 16 30 16Q30 16 30 16Q30 16 30 15Q30 15 30 15Q30 15 30 14Q30 14 30 14Q30 14 30 13Q30 13 30 13Q30 13 30 12Q30 12 30 12Q30 12 30 12Q30 11 30 11Q30 11 30 11Q30 10 30 10Q30 10 30 10Q30 9 30 9Q30 9 30 9Q30 8 30 8Q30 8 30 8Q30 8 30 7Q30 7 30 7Q30 7 30 6Q30 6 30 6Z" fill="none" stroke="#FFFF00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
369
+ '<path d="M46 6Q46 6 46 6Q45 6 45 6Q45 6 45 6Q44 6 44 6Q44 6 44 6Q43 6 43 6Q43 6 43 6Q42 6 42 6Q42 6 42 6Q42 6 41 6Q41 6 41 6Q41 6 40 6Q40 6 40 6Q40 6 39 6Q39 6 39 6Q39 6 38 6Q38 6 38 6Q38 6 38 6Q37 6 37 6Q37 6 37 6Q36 6 36 6Q36 6 36 6Q35 6 35 6Q35 6 35 6Q34 6 34 6Q34 6 34 6Q34 6 34 6Q34 7 34 7Q34 7 34 7Q34 8 34 8Q34 8 34 8Q34 8 34 9Q34 9 34 9Q34 9 34 10Q34 10 34 10Q34 10 34 11Q34 11 34 11Q34 11 34 12Q34 12 34 12Q34 12 34 12Q34 13 34 13Q34 13 34 13Q34 14 34 14Q34 14 34 14Q34 15 34 15Q34 15 34 15Q34 16 34 16Q34 16 34 16Q34 16 34 17Q34 17 34 17Q34 17 34 18Q34 18 34 18Q34 18 34 18Q34 18 35 18Q35 18 35 18Q35 18 36 18Q36 18 36 18Q36 18 37 18Q37 18 37 18Q37 18 38 18Q38 18 38 18Q38 18 38 18Q39 18 39 18Q39 18 39 18Q40 18 40 18Q40 18 40 18Q41 18 41 18Q41 18 41 18Q42 18 42 18Q42 18 42 18Q42 18 43 18Q43 18 43 18Q43 18 44 18Q44 18 44 18Q44 18 45 18Q45 18 45 18Q45 18 46 18Q46 18 46 18Q46 18 46 18Q46 17 46 17Q46 17 46 17Q46 16 46 16Q46 16 46 16Q46 16 46 15Q46 15 46 15Q46 15 46 14Q46 14 46 14Q46 14 46 13Q46 13 46 13Q46 13 46 12Q46 12 46 12Q46 12 46 12Q46 11 46 11Q46 11 46 11Q46 10 46 10Q46 10 46 10Q46 9 46 9Q46 9 46 9Q46 8 46 8Q46 8 46 8Q46 8 46 7Q46 7 46 7Q46 7 46 6Q46 6 46 6Z" fill="none" stroke="#FFFF00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
370
+ '</svg>'
371
+ )
372
+
373
+
374
+ class FlashUnder(FlashAround):
375
+ def get_path(self, mobject: Mobject, buff: float) -> Underline:
376
+ return Underline(mobject, buff=buff, stretch_factor=1.0)
377
+
378
+ editor_thumbnail = (
379
+ '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 24">'
380
+ '<path d="M2 12Q2 12 2 12Q2 12 2 12Q2 12 2 12Q2 12 2 12Q3 12 3 12Q3 12 3 12Q3 12 3 12Q3 12 3 12Q3 12 3 12Q3 12 3 12Q3 12 3 12Q3 12 3 12Q3 12 4 12Q4 12 4 12Q4 12 4 12Q4 12 4 12Q4 12 4 12Q4 12 4 12Q4 12 4 12Q4 12 4 12Q4 12 5 12Q5 12 5 12Q5 12 5 12Q5 12 5 12Q5 12 5 12Q5 12 5 12Q5 12 5 12Q5 12 5 12Q5 12 5 12Q6 12 6 12Q6 12 6 12Q6 12 6 12Q6 12 6 12Q6 12 6 12Q6 12 6 12Q6 12 6 12Q6 12 6 12Q6 12 7 12Q7 12 7 12Q7 12 7 12Q7 12 7 12Q7 12 7 12Q7 12 7 12Q7 12 7 12Q7 12 7 12Q7 12 7 12Q8 12 8 12Q8 12 8 12Q8 12 8 12Q8 12 8 12Q8 12 8 12Q8 12 8 12Q8 12 8 12Q8 12 8 12Q8 12 9 12Q9 12 9 12Q9 12 9 12Q9 12 9 12Q9 12 9 12Q9 12 9 12Q9 12 9 12Q9 12 9 12Q9 12 9 12Q10 12 10 12Q10 12 10 12Q10 12 10 12Q10 12 10 12Q10 12 10 12Q10 12 10 12Q10 12 10 12Q10 12 10 12Q10 12 11 12Q11 12 11 12Q11 12 11 12Q11 12 11 12Q11 12 11 12Q11 12 11 12Q11 12 11 12Q11 12 11 12Q11 12 11 12Q12 12 12 12Q12 12 12 12Q12 12 12 12Q12 12 12 12Q12 12 12 12Q12 12 12 12Q12 12 12 12Q12 12 12 12Q12 12 13 12Q13 12 13 12Q13 12 13 12Q13 12 13 12Q13 12 13 12Q13 12 13 12Q13 12 13 12Q13 12 13 12Q13 12 14 12Q14 12 14 12Q14 12 14 12Q14 12 14 12Q14 12 14 12Q14 12 14 12Q14 12 14 12" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
381
+ '<path d="M18 12Q18 12 18 12Q18 12 18 12Q18 12 18 12Q18 12 18 12Q18 12 18 12Q19 12 19 12Q19 12 19 12Q19 12 19 12Q19 12 19 12Q19 12 19 12Q19 12 19 12Q19 12 19 12Q19 12 19 12Q20 12 20 12Q20 12 20 12Q20 12 20 12Q20 12 20 12Q20 12 20 12Q20 12 20 12Q20 12 20 12Q20 12 20 12Q20 12 21 12Q21 12 21 12Q21 12 21 12Q21 12 21 12Q21 12 21 12Q21 12 21 12Q21 12 21 12Q21 12 21 12Q21 12 21 12Q22 12 22 12Q22 12 22 12Q22 12 22 12Q22 12 22 12Q22 12 22 12Q22 12 22 12Q22 12 22 12Q22 12 22 12Q22 12 23 12Q23 12 23 12Q23 12 23 12Q23 12 23 12Q23 12 23 12Q23 12 23 12Q23 12 23 12Q23 12 23 12Q23 12 23 12Q24 12 24 12Q24 12 24 12Q24 12 24 12Q24 12 24 12Q24 12 24 12Q24 12 24 12Q24 12 24 12Q24 12 24 12Q24 12 25 12Q25 12 25 12Q25 12 25 12Q25 12 25 12Q25 12 25 12Q25 12 25 12Q25 12 25 12Q25 12 25 12Q25 12 25 12Q26 12 26 12Q26 12 26 12Q26 12 26 12Q26 12 26 12Q26 12 26 12Q26 12 26 12Q26 12 26 12Q26 12 26 12Q26 12 27 12Q27 12 27 12Q27 12 27 12Q27 12 27 12Q27 12 27 12Q27 12 27 12Q27 12 27 12Q27 12 27 12Q27 12 27 12Q28 12 28 12Q28 12 28 12Q28 12 28 12Q28 12 28 12Q28 12 28 12Q28 12 28 12Q28 12 28 12Q28 12 28 12Q28 12 29 12Q29 12 29 12Q29 12 29 12Q29 12 29 12Q29 12 29 12Q29 12 29 12Q29 12 29 12Q29 12 29 12Q29 12 30 12Q30 12 30 12Q30 12 30 12Q30 12 30 12Q30 12 30 12Q30 12 30 12" fill="none" stroke="#888888" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
382
+ '<path d="M34 12Q34 12 34 12Q34 12 34 12Q34 12 34 12Q34 12 34 12Q34 12 34 12Q34 12 34 12Q35 12 35 12Q35 12 35 12Q35 12 35 12Q35 12 35 12Q35 12 35 12Q35 12 35 12Q35 12 35 12Q35 12 35 12Q36 12 36 12Q36 12 36 12Q36 12 36 12Q36 12 36 12Q36 12 36 12Q36 12 36 12Q36 12 36 12Q36 12 36 12Q36 12 37 12Q37 12 37 12Q37 12 37 12Q37 12 37 12Q37 12 37 12Q37 12 37 12Q37 12 37 12Q37 12 37 12Q37 12 37 12Q38 12 38 12Q38 12 38 12Q38 12 38 12Q38 12 38 12Q38 12 38 12Q38 12 38 12Q38 12 38 12Q38 12 38 12Q38 12 39 12Q39 12 39 12Q39 12 39 12Q39 12 39 12Q39 12 39 12Q39 12 39 12Q39 12 39 12Q39 12 39 12Q39 12 39 12Q40 12 40 12Q40 12 40 12Q40 12 40 12Q40 12 40 12Q40 12 40 12Q40 12 40 12Q40 12 40 12Q40 12 40 12Q40 12 41 12Q41 12 41 12Q41 12 41 12Q41 12 41 12Q41 12 41 12Q41 12 41 12Q41 12 41 12Q41 12 41 12Q41 12 41 12Q42 12 42 12Q42 12 42 12Q42 12 42 12Q42 12 42 12Q42 12 42 12Q42 12 42 12Q42 12 42 12Q42 12 42 12Q42 12 43 12Q43 12 43 12Q43 12 43 12Q43 12 43 12Q43 12 43 12Q43 12 43 12Q43 12 43 12Q43 12 43 12Q43 12 43 12Q44 12 44 12Q44 12 44 12Q44 12 44 12Q44 12 44 12Q44 12 44 12Q44 12 44 12Q44 12 44 12Q44 12 44 12Q45 12 45 12Q45 12 45 12Q45 12 45 12Q45 12 45 12Q45 12 45 12Q45 12 45 12Q45 12 45 12Q45 12 45 12Q45 12 46 12Q46 12 46 12Q46 12 46 12Q46 12 46 12Q46 12 46 12" fill="none" stroke="#888888" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
383
+ '</svg>'
384
+ )
385
+
386
+
387
+ class ShowCreationThenDestruction(ShowPassingFlash):
388
+ def __init__(self, vmobject: VMobject, time_width: UnsignedFloat = 2.0, **kwargs):
389
+ super().__init__(vmobject, time_width=time_width, **kwargs)
390
+
391
+ editor_thumbnail = (
392
+ '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 24">'
393
+ '<path d="M14.2 5.9Q10.0 5.9 5.7 5.9Q5.7 5.9 5.7 5.9Q5.7 5.9 5.7 5.9Q5.7 5.9 5.7 5.9" fill="#58C4DD" fill-opacity="0.60" stroke="#C7E9F1" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
394
+ '<path d="M30.1 5.9Q24.0 5.9 17.9 5.9Q17.9 12.0 17.9 18.1Q24.0 18.1 30.1 18.1Q30.1 12.0 30.1 5.9Z" fill="#58C4DD" fill-opacity="0.60" stroke="#C7E9F1" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
395
+ '<path d="M46.0 5.9Q46.0 5.9 46.0 5.9Q46.0 5.9 46.0 5.9Q46.0 5.9 46.0 5.9Q46.0 5.9 46.0 5.9Z" fill="#58C4DD" fill-opacity="0.60" stroke="#C7E9F1" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
396
+ '</svg>'
397
+ )
398
+
399
+
400
+ class ShowCreationThenFadeOut(Succession):
401
+ def __init__(self, mobject: Mobject, remover: bool = True, **kwargs):
402
+ super().__init__(
403
+ ShowCreation(mobject),
404
+ FadeOut(mobject),
405
+ remover=remover,
406
+ **kwargs
407
+ )
408
+
409
+ editor_thumbnail = (
410
+ '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 24">'
411
+ '<path d="M14.2 5.9Q8.1 5.9 2.0 5.9Q2.0 7.5 2.0 9.2Q2.0 9.2 2.0 9.2Q2.0 9.2 2.0 9.2" fill="#58C4DD" fill-opacity="0.60" stroke="#C7E9F1" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
412
+ '<path d="M30.1 5.9Q24.0 5.9 17.9 5.9Q17.9 12.0 17.9 18.1Q24.0 18.1 30.1 18.1Q30.1 12.0 30.1 5.9Z" fill="#58C4DD" fill-opacity="0.59" stroke="#C7E9F1" stroke-opacity="0.99" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
413
+ '<path d="M46.0 5.9Q39.9 5.9 33.8 5.9Q33.8 12.0 33.8 18.1Q39.9 18.1 46.0 18.1Q46.0 12.0 46.0 5.9Z" fill="none" stroke="#58C4DD" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
414
+ '</svg>'
415
+ )
416
+
417
+
418
+ class AnimationOnSurroundingRectangle(AnimationGroup):
419
+ RectAnimationType: type = Animation
420
+
421
+ def __init__(
422
+ self,
423
+ mobject: Mobject,
424
+ stroke_width: StrokeWidth = 2.0,
425
+ stroke_color: ManimColor = YELLOW,
426
+ buff: float = SMALL_BUFF,
427
+ **kwargs
428
+ ):
429
+ rect = SurroundingRectangle(
430
+ mobject,
431
+ stroke_width=stroke_width,
432
+ stroke_color=stroke_color,
433
+ buff=buff,
434
+ )
435
+ rect.add_updater(lambda r: r.move_to(mobject))
436
+ super().__init__(self.RectAnimationType(rect, **kwargs))
437
+
438
+ editor_thumbnail = (
439
+ '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 24">'
440
+ '<path d="M14.2 5.9Q8.1 5.9 2.0 5.9Q2.0 12.0 2.0 18.1Q8.1 18.1 14.2 18.1Q14.2 12.0 14.2 5.9Z" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
441
+ '<path d="M30.1 5.9Q24.0 5.9 17.9 5.9Q17.9 12.0 17.9 18.1Q24.0 18.1 30.1 18.1Q30.1 12.0 30.1 5.9Z" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
442
+ '<path d="M46.0 5.9Q39.9 5.9 33.8 5.9Q33.8 12.0 33.8 18.1Q39.9 18.1 46.0 18.1Q46.0 12.0 46.0 5.9Z" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
443
+ '</svg>'
444
+ )
445
+
446
+
447
+ class ShowPassingFlashAround(AnimationOnSurroundingRectangle):
448
+ RectAnimationType = ShowPassingFlash
449
+
450
+ editor_thumbnail = (
451
+ '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 24">'
452
+ '<path d="M14.2 4.3Q12.3 4.3 10.3 4.3Q10.3 4.3 10.3 4.3Q10.3 4.3 10.3 4.3Q10.3 4.3 10.3 4.3" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
453
+ '<path d="M17.9 19.7Q17.9 19.7 17.9 19.7Q17.9 19.7 17.9 19.7Q21.0 19.7 24.1 19.7Q24.1 19.7 24.1 19.7" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
454
+ '<path d="M46.0 4.3Q46.0 4.3 46.0 4.3Q46.0 4.3 46.0 4.3Q46.0 4.3 46.0 4.3Q46.0 4.3 46.0 4.3Z" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
455
+ '</svg>'
456
+ )
457
+
458
+
459
+ class ShowCreationThenDestructionAround(AnimationOnSurroundingRectangle):
460
+ RectAnimationType = ShowCreationThenDestruction
461
+
462
+ editor_thumbnail = (
463
+ '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 24">'
464
+ '<path d="M14.2 5.9Q10.0 5.9 5.7 5.9Q5.7 5.9 5.7 5.9Q5.7 5.9 5.7 5.9Q5.7 5.9 5.7 5.9" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
465
+ '<path d="M30.1 5.9Q24.0 5.9 17.9 5.9Q17.9 12.0 17.9 18.1Q24.0 18.1 30.1 18.1Q30.1 12.0 30.1 5.9Z" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
466
+ '<path d="M46.0 5.9Q46.0 5.9 46.0 5.9Q46.0 5.9 46.0 5.9Q46.0 5.9 46.0 5.9Q46.0 5.9 46.0 5.9Z" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
467
+ '</svg>'
468
+ )
469
+
470
+
471
+ class ShowCreationThenFadeAround(AnimationOnSurroundingRectangle):
472
+ RectAnimationType = ShowCreationThenFadeOut
473
+
474
+ editor_thumbnail = (
475
+ '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 24">'
476
+ '<path d="M14.2 5.9Q8.1 5.9 2.0 5.9Q2.0 7.5 2.0 9.2Q2.0 9.2 2.0 9.2Q2.0 9.2 2.0 9.2" fill="none" stroke="#FFFF00" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
477
+ '<path d="M30.1 5.9Q24.0 5.9 17.9 5.9Q17.9 12.0 17.9 18.1Q24.0 18.1 30.1 18.1Q30.1 12.0 30.1 5.9Z" fill="none" stroke="#FFFF00" stroke-opacity="0.99" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
478
+ '<path d="M46.0 5.9Q39.9 5.9 33.8 5.9Q33.8 12.0 33.8 18.1Q39.9 18.1 46.0 18.1Q46.0 12.0 46.0 5.9Z" fill="none" stroke="#FFFF00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
479
+ '</svg>'
480
+ )
481
+
482
+
483
+ class ApplyWave(Homotopy):
484
+ def __init__(
485
+ self,
486
+ mobject: Mobject,
487
+ direction: Vect3 = UP,
488
+ amplitude: float = 0.2,
489
+ run_time: Duration = 1.0,
490
+ **kwargs
491
+ ):
492
+
493
+ left_x = mobject.get_left()[0]
494
+ right_x = mobject.get_right()[0]
495
+ vect = amplitude * direction
496
+
497
+ def homotopy(x, y, z, t):
498
+ alpha = (x - left_x) / (right_x - left_x)
499
+ power = np.exp(2.0 * (alpha - 0.5))
500
+ nudge = there_and_back(t**power)
501
+ return np.array([x, y, z]) + nudge * vect
502
+
503
+ super().__init__(homotopy, mobject, **kwargs)
504
+
505
+ editor_thumbnail = (
506
+ '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 24">'
507
+ '<path d="M14.2 6.6Q8.1 6.6 2.0 5.3Q2.0 11.4 2.0 17.6Q8.1 18.8 14.2 18.8Q14.2 12.7 14.2 6.6Z" fill="#58C4DD" fill-opacity="0.60" stroke="#C7E9F1" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
508
+ '<path d="M30.1 5.9Q24.0 5.2 17.9 6.3Q17.9 12.4 17.9 18.5Q24.0 17.4 30.1 18.1Q30.1 12.0 30.1 5.9Z" fill="#58C4DD" fill-opacity="0.60" stroke="#C7E9F1" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
509
+ '<path d="M46.0 6.6Q39.9 6.6 33.8 6.6Q33.8 12.7 33.8 18.8Q39.9 18.8 46.0 18.8Q46.0 12.7 46.0 6.6Z" fill="#58C4DD" fill-opacity="0.60" stroke="#C7E9F1" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
510
+ '</svg>'
511
+ )
512
+
513
+
514
+ class WiggleOutThenIn(Animation):
515
+ def __init__(
516
+ self,
517
+ mobject: Mobject,
518
+ scale_value: float = 1.1,
519
+ rotation_angle: Angle = 0.01 * TAU,
520
+ n_wiggles: UnsignedInt = 6,
521
+ scale_about_point: np.ndarray | None = None,
522
+ rotate_about_point: np.ndarray | None = None,
523
+ run_time: Duration = 2,
524
+ **kwargs
525
+ ):
526
+ self.scale_value = scale_value
527
+ self.rotation_angle = rotation_angle
528
+ self.n_wiggles = n_wiggles
529
+ self.scale_about_point = scale_about_point
530
+ self.rotate_about_point = rotate_about_point
531
+ super().__init__(mobject, run_time=run_time, **kwargs)
532
+
533
+ def get_scale_about_point(self) -> np.ndarray:
534
+ return self.scale_about_point or self.mobject.get_center()
535
+
536
+ def get_rotate_about_point(self) -> np.ndarray:
537
+ return self.rotate_about_point or self.mobject.get_center()
538
+
539
+ def interpolate_submobject(
540
+ self,
541
+ submobject: Mobject,
542
+ starting_sumobject: Mobject,
543
+ alpha: float
544
+ ) -> None:
545
+ submobject.match_points(starting_sumobject)
546
+ submobject.scale(
547
+ interpolate(1, self.scale_value, there_and_back(alpha)),
548
+ about_point=self.get_scale_about_point()
549
+ )
550
+ submobject.rotate(
551
+ wiggle(alpha, self.n_wiggles) * self.rotation_angle,
552
+ about_point=self.get_rotate_about_point()
553
+ )
554
+
555
+ editor_thumbnail = (
556
+ '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 24">'
557
+ '<path d="M13.4 6.7Q8.1 6.7 2.8 6.7Q2.8 12.0 2.8 17.3Q8.1 17.3 13.4 17.3Q13.4 12.0 13.4 6.7Z" fill="#58C4DD" fill-opacity="0.60" stroke="#C7E9F1" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
558
+ '<path d="M30.1 6.6Q24.3 6.2 18.6 5.9Q18.2 11.7 17.9 17.4Q23.7 17.8 29.4 18.1Q29.8 12.3 30.1 6.6Z" fill="#58C4DD" fill-opacity="0.60" stroke="#C7E9F1" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
559
+ '<path d="M45.2 6.7Q39.9 6.7 34.6 6.7Q34.6 12.0 34.6 17.3Q39.9 17.3 45.2 17.3Q45.2 12.0 45.2 6.7Z" fill="#58C4DD" fill-opacity="0.60" stroke="#C7E9F1" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
560
+ '</svg>'
561
+ )
562
+
563
+
564
+ class TurnInsideOut(Transform):
565
+ def __init__(self, mobject: Mobject, path_arc: Angle = 90 * DEG, **kwargs):
566
+ super().__init__(mobject, path_arc=path_arc, **kwargs)
567
+
568
+ def create_target(self) -> Mobject:
569
+ return self.mobject.copy().reverse_points()
570
+
571
+ editor_thumbnail = (
572
+ '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 24">'
573
+ '<path d="M14.2 5.9Q8.1 6.4 2.1 7.0Q2.0 12.6 2.0 18.1Q8.1 17.6 14.2 17.0Q14.2 11.4 14.2 5.9Z" fill="#58C4DD" fill-opacity="0.60" stroke="#C7E9F1" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
574
+ '<path d="M30.1 5.9Q26.5 10.8 22.8 15.7Q20.4 16.9 17.9 18.1Q21.5 13.2 25.2 8.3Q27.6 7.1 30.1 5.9Z" fill="#58C4DD" fill-opacity="0.60" stroke="#C7E9F1" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
575
+ '<path d="M46.0 5.9Q46.0 12.0 46.0 18.1Q39.9 18.1 33.8 18.1Q33.8 12.0 33.8 5.9Q39.9 5.9 46.0 5.9Z" fill="#58C4DD" fill-opacity="0.60" stroke="#C7E9F1" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
576
+ '</svg>'
577
+ )
578
+
579
+
580
+ class FlashyFadeIn(AnimationGroup):
581
+ def __init__(self,
582
+ vmobject: VMobject,
583
+ stroke_width: StrokeWidth = 2.0,
584
+ fade_lag: float = 0.0,
585
+ time_width: UnsignedFloat = 1.0,
586
+ **kwargs
587
+ ):
588
+ outline = vmobject.copy()
589
+ outline.set_fill(opacity=0)
590
+ outline.set_stroke(width=stroke_width, opacity=1)
591
+
592
+ rate_func = kwargs.get("rate_func", smooth)
593
+ super().__init__(
594
+ FadeIn(vmobject, rate_func=squish_rate_func(rate_func, fade_lag, 1)),
595
+ VShowPassingFlash(outline, time_width=time_width),
596
+ **kwargs
597
+ )
598
+
599
+ editor_thumbnail = (
600
+ '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 24">'
601
+ '<path d="M14.2 5.9Q8.1 5.9 2.0 5.9Q2.0 12.0 2.0 18.1Q8.1 18.1 14.2 18.1Q14.2 12.0 14.2 5.9Z" fill="#58C4DD" fill-opacity="0.03" stroke="#C7E9F1" stroke-opacity="0.06" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
602
+ '<path d="M14.2 5.9Q8.1 5.9 2.0 5.9Q2.0 12.0 2.0 18.1Q8.1 18.1 14.2 18.1Q14.2 12.0 14.2 5.9Z" fill="none" stroke="#58C4DD" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
603
+ '<path d="M30.1 5.9Q24.0 5.9 17.9 5.9Q17.9 12.0 17.9 18.1Q24.0 18.1 30.1 18.1Q30.1 12.0 30.1 5.9Z" fill="#58C4DD" fill-opacity="0.36" stroke="#C7E9F1" stroke-opacity="0.59" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
604
+ '<path d="M30.1 5.9Q24.0 5.9 17.9 5.9Q17.9 12.0 17.9 18.1Q24.0 18.1 30.1 18.1Q30.1 12.0 30.1 5.9Z" fill="none" stroke="#58C4DD" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
605
+ '<path d="M46.0 5.9Q39.9 5.9 33.8 5.9Q33.8 12.0 33.8 18.1Q39.9 18.1 46.0 18.1Q46.0 12.0 46.0 5.9Z" fill="#58C4DD" fill-opacity="0.60" stroke="#C7E9F1" stroke-opacity="1.00" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
606
+ '<path d="M46.0 5.9Q39.9 5.9 33.8 5.9Q33.8 12.0 33.8 18.1Q39.9 18.1 46.0 18.1Q46.0 12.0 46.0 5.9Z" fill="none" stroke="#58C4DD" stroke-width="1.3" fill-rule="evenodd" stroke-linejoin="round"/>'
607
+ '</svg>'
608
+ )