mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Fix a bug for off-center vector fields
This commit is contained in:
parent
6c3e4b94ea
commit
01d989ba23
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ class VectorField(VGroup):
|
||||||
origin, _output, buff=0,
|
origin, _output, buff=0,
|
||||||
**vector_config
|
**vector_config
|
||||||
)
|
)
|
||||||
vect.shift(_input)
|
vect.shift(_input - origin)
|
||||||
vect.set_rgba_array([[*self.value_to_rgb(norm), self.opacity]])
|
vect.set_rgba_array([[*self.value_to_rgb(norm), self.opacity]])
|
||||||
return vect
|
return vect
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue