Skip to content

gray

Defines a gray color, used in the SolidColor object.

GrayColor

Bases: Photoshop

Options for defining a gray color.

Source code in photoshop/api/colors/gray.py
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class GrayColor(Photoshop):
    """Options for defining a gray color."""

    object_name = "GrayColor"

    def __init__(self, parent):
        super().__init__(parent=parent)

    @property
    def gray(self) -> float:
        """The gray value."""
        return self.app.gray

    @gray.setter
    def gray(self, value: float):
        """The gray value."""
        self.app.gray = value

gray: float property writable

The gray value.


Last update: 2024-11-27
Created: 2024-11-27