예제 #1
0
파일: light.py 프로젝트: coallaoh/manim
 def __init__(self, light, **kwargs):
     if (not isinstance(light, AmbientLight) and not isinstance(light, Spotlight)):
         raise Exception(
             "Only AmbientLights and Spotlights can be switched off")
     light.submobjects = light.submobjects[::-1]
     LaggedStartMap.__init__(self, FadeOut, light, **kwargs)
     light.submobjects = light.submobjects[::-1]
예제 #2
0
 def __init__(self, light, **kwargs):
     if (not isinstance(light, AmbientLight) and not isinstance(light, Spotlight)):
         raise Exception(
             "Only AmbientLights and Spotlights can be switched off")
     light.submobjects = light.submobjects[::-1]
     LaggedStartMap.__init__(self, FadeOut, light, **kwargs)
     light.submobjects = light.submobjects[::-1]
예제 #3
0
파일: light.py 프로젝트: coallaoh/manim
 def __init__(self, light, **kwargs):
     if (not isinstance(light, AmbientLight) and not isinstance(light, Spotlight)):
         raise Exception(
             "Only AmbientLights and Spotlights can be switched on")
     LaggedStartMap.__init__(
         self, FadeIn, light, **kwargs
     )
예제 #4
0
 def __init__(self, light, **kwargs):
     if (not isinstance(light, AmbientLight) and not isinstance(light, Spotlight)):
         raise Exception(
             "Only AmbientLights and Spotlights can be switched on")
     LaggedStartMap.__init__(
         self, FadeIn, light, **kwargs
     )