Renamed gradient_highlight to set_color_by_gradient

This commit is contained in:
Grant Sanderson
2018-03-30 11:59:39 -07:00
parent 618590bee1
commit 380a87acca
45 changed files with 153 additions and 153 deletions

View File

@ -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)