manim-circuit


Namemanim-circuit JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/Mr-FuzzyPenguin/manim-circuit
SummaryA manim-plugin that adds custom circuit VMobject(s)
upload_time2024-09-22 16:51:03
maintainerNone
docs_urlNone
authorMr-FuzzyPenguin
requires_python<3.13,>=3.9
licenseMIT
keywords manim plugins circuit
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Manim-Circuit Plugin
## Description
A manim-plugin that adds customized `Mobject` and `VMobject`(s) to create some electrical components. Some electrical components include: Resistors, Inductors, and Capacitors.

## Ok... But WHY?
Manim is an animation library for mathematics. So... what am I doing over here, making some basic circuit elements in the form of customized `Mobjects`? Well, as it turns out, much of circuit analysis has some pretty cool mathematics behind it, and so I wished that there was a library that could give me those customized `Mobjects`. I am making this library alongside the production of my [Practical Engineering series on YouTube](https://www.youtube.com/playlist?list=PLxAacf1hM524ZExrv4PxZPQFUXTQ9Wn1Y).

*"airight man, but you do know that other libraries exist, you know... `CircuiTikz` via LaTex, `circuitanimlib` for ManimGL just to name a few... Stop insisting on re-inventing the wheel".*

Alright, let's talk about `CircuiTikz`. I am fully aware that this wonderful LaTex package exists. You can choose to use CircuitTikz to render the circuit, but you cannot select components of that `Tex` Mobject like you would when using this manim-plugin. Also, I saw a few bugs on forums relating manim and `CircuitTikz` together, on other GitHub repositories.`CircuitTikz` is great at making PDFs, drawing circuit diagrams in papers, but it just simply does not fit nicely with Manim.

And for `circuitanimlib`, the library seemed promising, until I realized its latest commit renders it broken, and its unmaintained. Also, it uses ManimGL which, although faster, has limited documentation on it.

This library is written for ManimCE, not ManimGL. Additionally, there are more resrouces for ManimCE as opposed to ManimGL. Additionally still, ManimCE even has a nice plugin repository and active community plugins. I'd like to make a contribution onto it!

### Inspiration
[Why I made this library](STORY.md)
## Roadmap
- [X] Make this my first open-source package that I, FuzzyPenguin (online alias: Pete Aptenodyte Forsteri) will maintain.
- [ ] Release this to Pypi
- [X] Make this a manim-plugin named manim-circuit
- [ ] Add all of the circuit elements that were used in our class
- [ ] Use this library for AT LEAST one of my future videos whatever it may be\*
- [ ] Clean up the Code
- [X] Maybe make a Circuit `Mobject` in order to help with circuit analysis
- [ ] If I have time, make logic gates too


\*Most likely Circuit Analysis using Laplace Transform for a pure Manim-based animation video
## Documentation

Please note, this is a WIP: More things will be added as Development continues.
`Resistor()`, `Inductor()`, `Capacitor()`, supports labels. For example:
`Inductor(label="0.3", direction=UP)` will make a 0.3 H inductor with a label on the top.

All customized Mobjects will have a `.get_terminals(self, val)` method where passing something in `val` will return the coordinate of a pin of any circuit Element.

Examples in [examples/](examples/)
## License

[MIT](https://choosealicense.com/licenses/mit/)


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Mr-FuzzyPenguin/manim-circuit",
    "name": "manim-circuit",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.13,>=3.9",
    "maintainer_email": null,
    "keywords": "manim, plugins, circuit",
    "author": "Mr-FuzzyPenguin",
    "author_email": "rubikscubeworld2014@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f0/ad/3bc9c4a96261e64bc94ab51ddcab39165c230698a8f3ed9a65cf5dbd5824/manim_circuit-0.0.2.tar.gz",
    "platform": null,
    "description": "# Manim-Circuit Plugin\n## Description\nA manim-plugin that adds customized `Mobject` and `VMobject`(s) to create some electrical components. Some electrical components include: Resistors, Inductors, and Capacitors.\n\n## Ok... But WHY?\nManim is an animation library for mathematics. So... what am I doing over here, making some basic circuit elements in the form of customized `Mobjects`? Well, as it turns out, much of circuit analysis has some pretty cool mathematics behind it, and so I wished that there was a library that could give me those customized `Mobjects`. I am making this library alongside the production of my [Practical Engineering series on YouTube](https://www.youtube.com/playlist?list=PLxAacf1hM524ZExrv4PxZPQFUXTQ9Wn1Y).\n\n*\"airight man, but you do know that other libraries exist, you know... `CircuiTikz` via LaTex, `circuitanimlib` for ManimGL just to name a few... Stop insisting on re-inventing the wheel\".*\n\nAlright, let's talk about `CircuiTikz`. I am fully aware that this wonderful LaTex package exists. You can choose to use CircuitTikz to render the circuit, but you cannot select components of that `Tex` Mobject like you would when using this manim-plugin. Also, I saw a few bugs on forums relating manim and `CircuitTikz` together, on other GitHub repositories.`CircuitTikz` is great at making PDFs, drawing circuit diagrams in papers, but it just simply does not fit nicely with Manim.\n\nAnd for `circuitanimlib`, the library seemed promising, until I realized its latest commit renders it broken, and its unmaintained. Also, it uses ManimGL which, although faster, has limited documentation on it.\n\nThis library is written for ManimCE, not ManimGL. Additionally, there are more resrouces for ManimCE as opposed to ManimGL. Additionally still, ManimCE even has a nice plugin repository and active community plugins. I'd like to make a contribution onto it!\n\n### Inspiration\n[Why I made this library](STORY.md)\n## Roadmap\n- [X] Make this my first open-source package that I, FuzzyPenguin (online alias: Pete Aptenodyte Forsteri) will maintain.\n- [ ] Release this to Pypi\n- [X] Make this a manim-plugin named manim-circuit\n- [ ] Add all of the circuit elements that were used in our class\n- [ ] Use this library for AT LEAST one of my future videos whatever it may be\\*\n- [ ] Clean up the Code\n- [X] Maybe make a Circuit `Mobject` in order to help with circuit analysis\n- [ ] If I have time, make logic gates too\n\n\n\\*Most likely Circuit Analysis using Laplace Transform for a pure Manim-based animation video\n## Documentation\n\nPlease note, this is a WIP: More things will be added as Development continues.\n`Resistor()`, `Inductor()`, `Capacitor()`, supports labels. For example:\n`Inductor(label=\"0.3\", direction=UP)` will make a 0.3 H inductor with a label on the top.\n\nAll customized Mobjects will have a `.get_terminals(self, val)` method where passing something in `val` will return the coordinate of a pin of any circuit Element.\n\nExamples in [examples/](examples/)\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A manim-plugin that adds custom circuit VMobject(s)",
    "version": "0.0.2",
    "project_urls": {
        "Homepage": "https://github.com/Mr-FuzzyPenguin/manim-circuit",
        "Repository": "https://github.com/Mr-FuzzyPenguin/manim-circuit"
    },
    "split_keywords": [
        "manim",
        " plugins",
        " circuit"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "56ee3d8046df5e3d8484b7dc81d3432423f43e51653d83349937ba09eebebd2b",
                "md5": "5c6ae8fb485311e1778e25ade65ff8ae",
                "sha256": "3b68446bc8aae4786f5c848d481f733826f1287007a8881f04fe551559ad4b99"
            },
            "downloads": -1,
            "filename": "manim_circuit-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5c6ae8fb485311e1778e25ade65ff8ae",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.13,>=3.9",
            "size": 7533,
            "upload_time": "2024-09-22T16:51:02",
            "upload_time_iso_8601": "2024-09-22T16:51:02.284578Z",
            "url": "https://files.pythonhosted.org/packages/56/ee/3d8046df5e3d8484b7dc81d3432423f43e51653d83349937ba09eebebd2b/manim_circuit-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f0ad3bc9c4a96261e64bc94ab51ddcab39165c230698a8f3ed9a65cf5dbd5824",
                "md5": "1b895c52e3da16c58b602052925a962e",
                "sha256": "5f0d5015c67adfd745f90e981c19a5bfb0cb8e93bb2bd0e16b6f958fe339ca97"
            },
            "downloads": -1,
            "filename": "manim_circuit-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "1b895c52e3da16c58b602052925a962e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.13,>=3.9",
            "size": 6317,
            "upload_time": "2024-09-22T16:51:03",
            "upload_time_iso_8601": "2024-09-22T16:51:03.954231Z",
            "url": "https://files.pythonhosted.org/packages/f0/ad/3bc9c4a96261e64bc94ab51ddcab39165c230698a8f3ed9a65cf5dbd5824/manim_circuit-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-22 16:51:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Mr-FuzzyPenguin",
    "github_project": "manim-circuit",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "manim-circuit"
}
        
Elapsed time: 0.37733s