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

Implement ImplicitFunction #1727

Merged
merged 2 commits into from
Feb 7, 2022
Merged

Implement ImplicitFunction #1727

merged 2 commits into from
Feb 7, 2022

Conversation

YishiMichael
Copy link
Contributor

Motivation

Implement ImplicitFunction class using isosurfaces package. This is borrowed from manim community edition.

Proposed changes

  • M manimlib/mobject/functions.py: implement ImplicitFunction
  • M requirements.txt: add dependency
  • M setup.cfg: add dependency

Test

Code:

class FuncTest(Scene):
    def construct(self):
        graph = ImplicitFunction(
            lambda x, y: x * y ** 2 - x ** 2 * y - 2,
            color=YELLOW
        )
        self.add(NumberPlane(), graph)

Result:
FuncTest

@TonyCrane TonyCrane requested a review from 3b1b February 5, 2022 14:21
@3b1b
Copy link
Owner

3b1b commented Feb 7, 2022

Nice, thank you!

@3b1b 3b1b merged commit baba692 into 3b1b:master Feb 7, 2022
@YishiMichael YishiMichael deleted the implicit-func branch February 8, 2022 02:27
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.

3 participants