Skip to content

Do we really need to add every color to locals()? #81

Closed
@leotrs

Description

@leotrs

Currently, constants.py is adding every color inside COLOR_MAP to the locals() dictionary. This is usually frowned upon in Python in general.

If we want to keep exposing all colors to the end user without any namespace access (like manim.colors.RED or some such), then we can carefully import all colors inside __init__.py. This could be done for the purpose of backward compatibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pr:deprecationDeprecation, or removal of deprecated coderefactorRefactor or redesign of existing code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions