INNER CODE UNIT · Python

opacity

fury-gl/fury · fury/actor/core.py:107

    def opacity(self):
        """
        Get the opacity of the actor.

        Returns
        -------
        float
            Opacity value between 0 (fully transparent) and 1 (fully opaque).
        """
        if isinstance(self, Group):
            if len(self.children) == 0:
                return 1.0
            return self.children[0].material.opacity
        return self.material.opacity

    @opacity.setter
    def opacity(self, opacity):
        """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…