mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Nix shade_in_3d stuff
This commit is contained in:
parent
b4fb0955a6
commit
a3e76334a6
1 changed files with 0 additions and 11 deletions
|
@ -37,15 +37,11 @@ class VMobject(Mobject):
|
||||||
"stroke_opacity": 1.0,
|
"stroke_opacity": 1.0,
|
||||||
"stroke_width": DEFAULT_STROKE_WIDTH,
|
"stroke_width": DEFAULT_STROKE_WIDTH,
|
||||||
"draw_stroke_behind_fill": False,
|
"draw_stroke_behind_fill": False,
|
||||||
# TODO, currently sheen does nothing
|
|
||||||
"sheen_factor": 0.0,
|
|
||||||
"sheen_direction": UL,
|
|
||||||
# Indicates that it will not be displayed, but
|
# Indicates that it will not be displayed, but
|
||||||
# that it should count in parent mobject's path
|
# that it should count in parent mobject's path
|
||||||
"pre_function_handle_to_anchor_scale_factor": 0.01,
|
"pre_function_handle_to_anchor_scale_factor": 0.01,
|
||||||
"make_smooth_after_applying_functions": False,
|
"make_smooth_after_applying_functions": False,
|
||||||
"background_image_file": None,
|
"background_image_file": None,
|
||||||
"shade_in_3d": False,
|
|
||||||
# This is within a pixel
|
# This is within a pixel
|
||||||
# TODO, do we care about accounting for
|
# TODO, do we care about accounting for
|
||||||
# varying zoom levels?
|
# varying zoom levels?
|
||||||
|
@ -313,13 +309,6 @@ class VMobject(Mobject):
|
||||||
self.color_using_background_image(vmobject.get_background_image_file())
|
self.color_using_background_image(vmobject.get_background_image_file())
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def set_shade_in_3d(self, value=True, z_index_as_group=False):
|
|
||||||
for submob in self.get_family():
|
|
||||||
submob.shade_in_3d = value
|
|
||||||
if z_index_as_group:
|
|
||||||
submob.z_index_group = self
|
|
||||||
return self
|
|
||||||
|
|
||||||
def stretched_style_array_matching_points(self, array):
|
def stretched_style_array_matching_points(self, array):
|
||||||
new_len = self.get_num_points()
|
new_len = self.get_num_points()
|
||||||
long_arr = stretch_array_to_length_with_interpolation(
|
long_arr = stretch_array_to_length_with_interpolation(
|
||||||
|
|
Loading…
Add table
Reference in a new issue