Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added experimental support for z_index #1

Merged
merged 1 commit into from
May 13, 2023

Conversation

Shimushushushu
Copy link

Test case

from manimlib import *

class TestCase(Scene):
    def construct(self):
        # circle1 = Circle()
        circle1 = Circle(z_index=1)
        circle1.set_fill(BLUE)
        circle1.set_stroke(BLUE_E, width=4)
        circle1.set_opacity(1)
        circle1.move_to(np.array([0.5, 0, 0]))

        # circle2 = Circle()
        circle2 = Circle(z_index=0)
        circle2.set_fill(RED)
        circle2.set_stroke(RED_E, width=4)        
        circle2.set_opacity(1)
        circle2.move_to(np.array([-0.5, 0, 0]))

        self.add(circle1)
        self.add(circle2)

@littlePING-221 littlePING-221 changed the base branch from master to test May 13, 2023 15:02
@littlePING-221 littlePING-221 merged commit cc854d9 into littlePING-221:test May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants