mirror of
https://github.com/3b1b/manim.git
synced 2025-08-03 04:04:36 +08:00
Renamed gradient_highlight to set_color_by_gradient
This commit is contained in:
@ -720,7 +720,7 @@ class IntroduceElectricField(PiCreatureScene):
|
||||
shading_list.sort(
|
||||
lambda m1, m2 : cmp(m1.get_length(), m2.get_length())
|
||||
)
|
||||
VGroup(*shading_list).gradient_highlight(*self.vector_field_colors)
|
||||
VGroup(*shading_list).set_color_by_gradient(*self.vector_field_colors)
|
||||
result.set_fill(opacity = 0.75)
|
||||
result.sort_submobjects(np.linalg.norm)
|
||||
|
||||
|
Reference in New Issue
Block a user