mirror of
https://github.com/3b1b/manim.git
synced 2026-04-26 03:00:23 -04:00
Add scale_radii method for DotCloud
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user