Skip to content

Default fill_opacity to 1 when fill_color is set #1682

Open
@k4pran

Description

@k4pran

Enhancement proposal

Currently fill_opacity for VMobject defaults to 0 which makes sense, but it doesn't make sense for it to remain 0 when the user sets the fill, as fill then doesn't really have any effect:

class Example(Scene):
    def construct(self):
        rect = Rectangle(fill_color=GREEN)
        self.add(rect)

image

I propose that when fill is set opacity should then default to 1 as in the absence of fill_opacity passed by the user it is most likely what they would expect to happen.

Additional comments

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAdditions and improvements in generalneeds discussionThings which needs to be discussed before implemented.

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions