mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Add scale_radii method for DotCloud
This commit is contained in:
parent
87e4a71ca3
commit
0a642133ad
1 changed files with 4 additions and 0 deletions
|
@ -117,6 +117,10 @@ class DotCloud(PMobject):
|
|||
def get_radius(self) -> float:
|
||||
return self.get_radii().max()
|
||||
|
||||
def scale_radii(self, scale_factor: float) -> Self:
|
||||
self.set_radius(scale_factor * self.get_radii())
|
||||
return self
|
||||
|
||||
def set_glow_factor(self, glow_factor: float) -> Self:
|
||||
self.uniforms["glow_factor"] = glow_factor
|
||||
return self
|
||||
|
|
Loading…
Add table
Reference in a new issue